feat: validate personal and enterprise auth tenants
This commit is contained in:
@@ -152,6 +152,10 @@ type MsgClientAcc struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
// Registration mobile number. An 11-digit mainland China number takes precedence over Username.
|
||||
Phone string `json:"phone,omitempty"`
|
||||
// Registration type: 0 enterprise, 1 personal. Required when creating a new account.
|
||||
RegistrationType *int `json:"registration_type,omitempty"`
|
||||
// Tenant code submitted by client for enterprise registration. Personal registration keeps it empty.
|
||||
TenantCode string `json:"tenant_code,omitempty"`
|
||||
// Deprecated compatibility field. New clients put a five-letter invitation
|
||||
// code in the shared verification input and submit it as the tel cred response.
|
||||
InviteCode string `json:"invite_code,omitempty"`
|
||||
@@ -173,6 +177,10 @@ type MsgClientLogin struct {
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
// Shared secret
|
||||
Secret []byte `json:"secret"`
|
||||
// Login type: 0 enterprise, 1 personal. Required for password login.
|
||||
LoginType *int `json:"login_type,omitempty"`
|
||||
// Tenant code submitted by client for enterprise login. Personal login keeps it empty or default.
|
||||
TenantCode string `json:"tenant_code,omitempty"`
|
||||
// Credntials being verified (email or phone or captcha etc.)
|
||||
Cred []MsgCredClient `json:"cred,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user