]> source.dussan.org Git - gitea.git/commitdiff
backport: Redirect to correct page after using scratch token (#4472)
authortechknowlogick <techknowlogick@users.noreply.github.com>
Thu, 19 Jul 2018 21:15:12 +0000 (17:15 -0400)
committerGitHub <noreply@github.com>
Thu, 19 Jul 2018 21:15:12 +0000 (17:15 -0400)
routers/user/auth.go

index 317b4af3bb042fbe2f34d90ed8194132f2cebcc4..f7dbaca32dd1c5781533bd6b1a0f64c48a8e7213 100644 (file)
@@ -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.
 
@@ -319,7 +320,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
        }