mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-20 17:43:29 +00:00
f49525ee9c
- Personal Center page with profile editing and last-login info - TOTP-based two-factor authentication with QR code setup - 30-day trusted-device cookie to skip 2FA on familiar browsers - Friendly browser/OS labels for the trusted device list Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
17 lines
469 B
Go
Executable File
17 lines
469 B
Go
Executable File
package dto
|
|
|
|
type LoginReq struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
AuthMethod string `json:"authMethod,omitempty"`
|
|
TotpCode string `json:"totpCode,omitempty"`
|
|
RememberDevice bool `json:"rememberDevice,omitempty"`
|
|
}
|
|
|
|
type LoginResp struct {
|
|
Token string `json:"token,omitempty"`
|
|
TwoFactorRequired bool `json:"twoFactorRequired,omitempty"`
|
|
}
|
|
|
|
type LogoutResp struct{}
|