summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2018-07-19 13:58:33 -0400
committerGitHub <noreply@github.com>2018-07-19 13:58:33 -0400
commit492ec97a461b20a476880ae786b4630843caa397 (patch)
tree8b07aad082a71cfd141b9b18b9ca66ecef94b21a /routers
parentd1337299e2c719f5d7eb1e4eff227359a8c1589b (diff)
downloadgitea-492ec97a461b20a476880ae786b4630843caa397.tar.gz
gitea-492ec97a461b20a476880ae786b4630843caa397.zip
Redirect to correct page after using scratch token (#4458)
Diffstat (limited to 'routers')
-rw-r--r--routers/user/auth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 4852d47aec..9a24108c73 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
+// Copyright 2018 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
@@ -320,7 +321,7 @@ func TwoFactorScratchPost(ctx *context.Context, form auth.TwoFactorScratchAuthFo
handleSignInFull(ctx, u, remember, false)
ctx.Flash.Info(ctx.Tr("auth.twofa_scratch_used"))
- ctx.Redirect(setting.AppSubURL + "/user/settings/two_factor")
+ ctx.Redirect(setting.AppSubURL + "/user/settings/security")
return
}