Skip to content

Commit 492ec97

Browse files
Redirect to correct page after using scratch token (#4458)
1 parent d133729 commit 492ec97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/user/auth.go

Lines changed: 2 additions & 1 deletion
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

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

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

0 commit comments

Comments
 (0)