This commit is contained in:
Nicolas
2026-06-15 22:11:23 +02:00
parent 8819eee696
commit 2f5a735c75
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ func ResetPasswdPost(ctx *context.Context) {
passcode := ctx.FormString("passcode")
ok, err := twofa.ValidateAndConsumeTOTP(ctx, passcode)
if err != nil {
ctx.HTTPError(http.StatusInternalServerError, "ValidateTOTP", err.Error())
ctx.HTTPError(http.StatusInternalServerError, "ValidateAndConsumeTOTP", err.Error())
return
}
if !ok {