summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorAsh McKenzie <ash@the-rebellion.net>2021-01-18 19:51:32 +1100
committerGitHub <noreply@github.com>2021-01-18 03:51:32 -0500
commit127907c5e66d671b139a8d2bd8912911c7e58347 (patch)
treec181de8c0f497ca81d1aa3ea2a047c4f31c0730d /routers/user
parentf95dce2f100fa449cdb40b2de70f1992f70db9a1 (diff)
downloadgitea-127907c5e66d671b139a8d2bd8912911c7e58347.tar.gz
gitea-127907c5e66d671b139a8d2bd8912911c7e58347.zip
Allow passcode invalid error to appear (#14371)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/setting/security_twofa.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting/security_twofa.go b/routers/user/setting/security_twofa.go
index 4ee698e15e..925fc2a443 100644
--- a/routers/user/setting/security_twofa.go
+++ b/routers/user/setting/security_twofa.go
@@ -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
}