mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user