Skip to content

Commit b37ca4a

Browse files
authoredJul 19, 2018
backport: Redirect to correct page after using scratch token (#4472)
1 parent 6788348 commit b37ca4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎routers/user/auth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2014 The Gogs Authors. All rights reserved.
2+
// Copyright 2018 The Gitea Authors. All rights reserved.
23
// Use of this source code is governed by a MIT-style
34
// license that can be found in the LICENSE file.
45

@@ -319,7 +320,7 @@ func TwoFactorScratchPost(ctx *context.Context, form auth.TwoFactorScratchAuthFo
319320

320321
handleSignInFull(ctx, u, remember, false)
321322
ctx.Flash.Info(ctx.Tr("auth.twofa_scratch_used"))
322-
ctx.Redirect(setting.AppSubURL + "/user/settings/two_factor")
323+
ctx.Redirect(setting.AppSubURL + "/user/settings/security")
323324
return
324325
}
325326

0 commit comments

Comments
 (0)