增加 用户名或姓名或邮箱 搜索支持

This commit is contained in:
bjdgyc
2024-01-15 17:46:47 +08:00
parent 4a33b42726
commit 7c3ed549d0
14 changed files with 382 additions and 999 deletions

View File

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