Allow passcode invalid error to appear (#14371)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
此提交包含在:
Ash McKenzie
2021-01-18 03:51:32 -05:00
提交者 GitHub
co-authored by Lunny Xiao
父節點 f95dce2f10
當前提交 127907c5e6
+1 -1
查看文件
@@ -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
}