Skip to content

Commit 127907c

Browse files
ashmckenzielunny
andauthored
Allow passcode invalid error to appear (#14371)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent f95dce2 commit 127907c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/setting/security_twofa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func EnrollTwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm) {
195195
return
196196
}
197197
ctx.Flash.Error(ctx.Tr("settings.passcode_invalid"))
198-
ctx.HTML(200, tplSettingsTwofaEnroll)
198+
ctx.Redirect(setting.AppSubURL + "/user/settings/security/two_factor/enroll")
199199
return
200200
}
201201

0 commit comments

Comments
 (0)