Allow passcode invalid error to appear (#14371)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tokarchuk/v1.17
Ash McKenzie 4 years ago committed by GitHub
parent f95dce2f10
commit 127907c5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/user/setting/security_twofa.go

@ -195,7 +195,7 @@ func EnrollTwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm) {
return return
} }
ctx.Flash.Error(ctx.Tr("settings.passcode_invalid")) ctx.Flash.Error(ctx.Tr("settings.passcode_invalid"))
ctx.HTML(200, tplSettingsTwofaEnroll) ctx.Redirect(setting.AppSubURL + "/user/settings/security/two_factor/enroll")
return return
} }

Loading…
Cancel
Save