mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 08:22:26 +08:00
增加 用户名或姓名或邮箱 搜索支持
This commit is contained in:
@@ -186,7 +186,7 @@ func checkOtp(name, otp, secret string) bool {
|
||||
|
||||
totp := gotp.NewDefaultTOTP(secret)
|
||||
unix := time.Now().Unix()
|
||||
verify := totp.Verify(otp, int(unix))
|
||||
verify := totp.Verify(otp, unix)
|
||||
|
||||
return verify
|
||||
}
|
||||
|
Reference in New Issue
Block a user