add google oauth2 support
This commit is contained in:
parent
5d30bfc8ba
commit
2ce0c3befe
5 changed files with 190 additions and 98 deletions
2
web.go
2
web.go
|
@ -88,7 +88,7 @@ func runWeb(*cli.Context) {
|
|||
m.Group("/user", func(r martini.Router) {
|
||||
r.Get("/login", user.SignIn)
|
||||
r.Post("/login", bindIgnErr(auth.LogInForm{}), user.SignInPost)
|
||||
r.Get("/login/github", user.SocialSignIn)
|
||||
r.Get("/login/:name", user.SocialSignIn)
|
||||
r.Get("/sign_up", user.SignUp)
|
||||
r.Post("/sign_up", bindIgnErr(auth.RegisterForm{}), user.SignUpPost)
|
||||
r.Get("/reset_password", user.ResetPasswd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue