aboutsummaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorAJ ONeal <coolaj86@gmail.com>2019-04-18 01:23:59 -0600
committerLauris BH <lauris@nix.lv>2019-04-18 10:23:59 +0300
commit6dbd26185203d464c4a4e32e7af04a34f37ae4f2 (patch)
treea637798c309f188ffb8abed5716b2fa03e5cb937 /routers/routes
parentfdb933cd67c10c6860ba39402f4b266a9f198f72 (diff)
downloadgitea-6dbd26185203d464c4a4e32e7af04a34f37ae4f2.tar.gz
gitea-6dbd26185203d464c4a4e32e7af04a34f37ae4f2.zip
UX + Security current user password reset (#5042)
* allow current user to reset their own password * handle reset password edge cases properly and consistently * remove dangling assignment * properly label account recovery instead of reset password * remove 'Click here' from button * update English-only account-recovery templates
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 9602bbed4a..e42222be88 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -273,8 +273,6 @@ func RegisterRoutes(m *macaron.Macaron) {
}, openIDSignInEnabled)
m.Get("/sign_up", user.SignUp)
m.Post("/sign_up", bindIgnErr(auth.RegisterForm{}), user.SignUpPost)
- m.Get("/reset_password", user.ResetPasswd)
- m.Post("/reset_password", user.ResetPasswdPost)
m.Group("/oauth2", func() {
m.Get("/:provider", user.SignInOAuth)
m.Get("/:provider/callback", user.SignInOAuthCallback)
@@ -382,6 +380,8 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Any("/activate", user.Activate, reqSignIn)
m.Any("/activate_email", user.ActivateEmail)
m.Get("/email2user", user.Email2User)
+ m.Get("/recover_account", user.ResetPasswd)
+ m.Post("/recover_account", user.ResetPasswdPost)
m.Get("/forgot_password", user.ForgotPasswd)
m.Post("/forgot_password", user.ForgotPasswdPost)
m.Get("/logout", user.SignOut)