Skip to content

Commit

Permalink
Allow passcode invalid error to appear (go-gitea#14371)
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <[email protected]>
  • Loading branch information
ashmckenzie and lunny authored Jan 18, 2021
1 parent f95dce2 commit 127907c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/user/setting/security_twofa.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func EnrollTwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm) {
return
}
ctx.Flash.Error(ctx.Tr("settings.passcode_invalid"))
ctx.HTML(200, tplSettingsTwofaEnroll)
ctx.Redirect(setting.AppSubURL + "/user/settings/security/two_factor/enroll")
return
}

Expand Down

0 comments on commit 127907c

Please sign in to comment.