|
|
@@ -193,7 +193,7 @@ func LoginPost(c *context.Context, f form.SignIn) {
|
|
|
|
|
|
c.Session.Set("twoFactorRemember", f.Remember)
|
|
|
c.Session.Set("twoFactorUserID", u.ID)
|
|
|
- c.SubURLRedirect("/user/login/two_factor")
|
|
|
+ c.SubURLRedirect("/login/two_factor")
|
|
|
}
|
|
|
|
|
|
func LoginTwoFactor(c *context.Context) {
|
|
|
@@ -226,7 +226,7 @@ func LoginTwoFactorPost(c *context.Context) {
|
|
|
return
|
|
|
} else if !valid {
|
|
|
c.Flash.Error(c.Tr("settings.two_factor_invalid_passcode"))
|
|
|
- c.SubURLRedirect("/user/login/two_factor")
|
|
|
+ c.SubURLRedirect("/login/two_factor")
|
|
|
return
|
|
|
}
|
|
|
|
|
|
@@ -239,7 +239,7 @@ func LoginTwoFactorPost(c *context.Context) {
|
|
|
// Prevent same passcode from being reused
|
|
|
if c.Cache.IsExist(u.TwoFactorCacheKey(passcode)) {
|
|
|
c.Flash.Error(c.Tr("settings.two_factor_reused_passcode"))
|
|
|
- c.SubURLRedirect("/user/login/two_factor")
|
|
|
+ c.SubURLRedirect("/login/two_factor")
|
|
|
return
|
|
|
}
|
|
|
if err = c.Cache.Put(u.TwoFactorCacheKey(passcode), 1, 60); err != nil {
|
|
|
@@ -269,7 +269,7 @@ func LoginTwoFactorRecoveryCodePost(c *context.Context) {
|
|
|
if err := models.UseRecoveryCode(userID, c.Query("recovery_code")); err != nil {
|
|
|
if errors.IsTwoFactorRecoveryCodeNotFound(err) {
|
|
|
c.Flash.Error(c.Tr("auth.login_two_factor_invalid_recovery_code"))
|
|
|
- c.SubURLRedirect("/user/login/two_factor_recovery_code")
|
|
|
+ c.SubURLRedirect("/login/two_factor_recovery_code")
|
|
|
} else {
|
|
|
c.ServerError("UseRecoveryCode", err)
|
|
|
}
|
|
|
@@ -390,7 +390,7 @@ func SignUpPost(c *context.Context, cpt *captcha.Captcha, f form.Register) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- c.SubURLRedirect("/user/login")
|
|
|
+ c.SubURLRedirect("/login")
|
|
|
}
|
|
|
|
|
|
func Activate(c *context.Context) {
|
|
|
@@ -573,7 +573,7 @@ func ResetPasswdPost(c *context.Context) {
|
|
|
}
|
|
|
|
|
|
log.Trace("User password reset: %s", u.Name)
|
|
|
- c.SubURLRedirect("/user/login")
|
|
|
+ c.SubURLRedirect("/login")
|
|
|
return
|
|
|
}
|
|
|
|