mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat: 登录支持输入2fa验证码
This commit is contained in:
@@ -29,7 +29,8 @@ func MustLogin(t *gotext.Locale, session *sessions.Manager) func(next http.Handl
|
||||
"/api/user/key",
|
||||
"/api/user/login",
|
||||
"/api/user/logout",
|
||||
"/api/user/isLogin",
|
||||
"/api/user/is_login",
|
||||
"/api/user/is_2fa",
|
||||
"/api/dashboard/panel",
|
||||
}
|
||||
return func(next http.Handler) http.Handler {
|
||||
|
||||
@@ -12,7 +12,7 @@ type UserLogin struct {
|
||||
}
|
||||
|
||||
type UserIsTwoFA struct {
|
||||
Username string `uri:"username" validate:"required"`
|
||||
Username string `query:"username" validate:"required"`
|
||||
}
|
||||
|
||||
type UserCreate struct {
|
||||
|
||||
Reference in New Issue
Block a user