diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-05 12:32:34 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-05 12:32:34 -0400 |
commit | b7c3b0cc73ad8721e2eec59d018a91850ba7f750 (patch) | |
tree | dd0bea39e518efe4c56f19397c0f583d98a6732c /web.go | |
parent | 3ebc9b991a70e10c4b2c6319c1ff6195c0d75a17 (diff) | |
download | gitea-b7c3b0cc73ad8721e2eec59d018a91850ba7f750.tar.gz gitea-b7c3b0cc73ad8721e2eec59d018a91850ba7f750.zip |
Add reset password, fix #58
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -92,6 +92,8 @@ func runWeb(*cli.Context) { // r.Any("/login/github", user.SocialSignIn) r.Any("/login", binding.BindIgnErr(auth.LogInForm{}), user.SignIn) r.Any("/sign_up", binding.BindIgnErr(auth.RegisterForm{}), user.SignUp) + r.Any("/forget_password", user.ForgotPasswd) + r.Any("/reset_password", user.ResetPasswd) }, reqSignOut) m.Group("/user", func(r martini.Router) { r.Any("/logout", user.SignOut) |