Mercurial > gemma
diff controllers/routes.go @ 304:69e291f26bbd
Password reset: Part II.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 01 Aug 2018 13:38:55 +0200 |
parents | 0777aa6de45b |
children | bd292a554b6e |
line wrap: on
line diff
--- a/controllers/routes.go Wed Aug 01 12:29:55 2018 +0200 +++ b/controllers/routes.go Wed Aug 01 13:38:55 2018 +0200 @@ -41,8 +41,12 @@ api.Handle("/users/passwordreset", &JSONHandler{ Input: func() interface{} { return new(PWResetUser) }, + Handle: passwordResetRequest, + }).Methods(http.MethodPost) + + api.Handle("/users/passwordreset/{hash}", &JSONHandler{ Handle: passwordReset, - }).Methods(http.MethodPost) + }).Methods(http.MethodGet) api.HandleFunc("/login", login). Methods(http.MethodGet, http.MethodPost)