mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 15:56:43 +08:00
增加 用户名或姓名或邮箱 搜索支持
This commit is contained in:
@@ -36,7 +36,7 @@ func Login(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
totp := gotp.NewDefaultTOTP(base.Cfg.AdminOtp)
|
||||
unix := time.Now().Unix()
|
||||
verify := totp.Verify(otp, int(unix))
|
||||
verify := totp.Verify(otp, unix)
|
||||
|
||||
if !verify {
|
||||
RespError(w, RespUserOrPassErr)
|
||||
|
Reference in New Issue
Block a user