mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 11:19:50 +08:00
添加 auth_alone_otp 开关
This commit is contained in:
@@ -118,7 +118,7 @@ func LinkAuth(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
// 用户otp验证
|
||||
if !v.DisableOtp {
|
||||
if base.Cfg.AuthAloneOtp && !v.DisableOtp {
|
||||
lockManager.LoginStatus.Store(loginStatusKey, true) // 重置OTP验证计数
|
||||
sessionID, err := GenerateSessionID()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user