mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
refactor: notification module
This commit is contained in:
parent
34fa4eb204
commit
ab46d1de7e
41 changed files with 3989 additions and 2411 deletions
|
@ -68,7 +68,7 @@ func VerifyOTP(user *model.User, otp, recoveryCode string) (err error) {
|
|||
}
|
||||
}
|
||||
if verified && usedCount == len(user.RecoveryCodes.Codes) {
|
||||
notification.Warning("All Recovery Codes Have Been Used", "Please generate new recovery codes in the preferences immediately to prevent lockout.")
|
||||
notification.Warning("All Recovery Codes Have Been Used", "Please generate new recovery codes in the preferences immediately to prevent lockout.", nil)
|
||||
}
|
||||
return ErrRecoveryCode
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue