Files
GL.iNet-Yongping.Xie f49525ee9c feat: add personal center with TOTP 2FA and trusted devices
- 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>
2026-04-06 21:17:44 -07:00

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{}