support linking OAuth 2.0 user to logged-in users
This commit is contained in:
@@ -4,6 +4,7 @@ package models
|
||||
type OAuth2LoginRequest struct {
|
||||
Platform string `form:"platform" binding:"required"`
|
||||
ClientSessionId string `form:"client_session_id" binding:"required"`
|
||||
Token string `form:"token"`
|
||||
}
|
||||
|
||||
// OAuth2CallbackRequest represents all parameters of OAuth 2.0 callback request
|
||||
@@ -18,4 +19,5 @@ type OAuth2CallbackRequest struct {
|
||||
type OAuth2CallbackLoginRequest struct {
|
||||
Password string `json:"password" binding:"omitempty,min=6,max=128"`
|
||||
Passcode string `json:"passcode" binding:"omitempty,notBlank,len=6"`
|
||||
Token string `json:"token" binding:"omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user