Add reset password, fix #58
This commit is contained in:
parent
3ebc9b991a
commit
b7c3b0cc73
10 changed files with 214 additions and 29 deletions
2
web.go
2
web.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue