feat(invite): began work on invited signup view, also added backdrop to login view, #2353

This commit is contained in:
Torkel Ödegaard
2015-07-19 12:34:03 +02:00
parent 6088f83408
commit 4ac652b127
9 changed files with 145 additions and 1 deletions

View File

@ -22,6 +22,7 @@ func Register(r *macaron.Macaron) {
r.Post("/login", bind(dtos.LoginCommand{}), wrap(LoginPost))
r.Get("/login/:name", OAuthLogin)
r.Get("/login", LoginView)
r.Get("/signup/invited", Index)
// authed views
r.Get("/profile/", reqSignedIn, Index)
@ -39,6 +40,7 @@ func Register(r *macaron.Macaron) {
r.Get("/dashboard/*", reqSignedIn, Index)
// sign up
r.Get("/signup", Index)
r.Post("/api/user/signup", bind(m.CreateUserCommand{}), wrap(SignUp))
// reset password