Mercurial > gemma
diff pkg/controllers/routes.go @ 3721:ed4820efb7e6
Password reset: Send redirect to server starting page when reset succeeded.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 20 Jun 2019 18:04:53 +0200 |
parents | 6693be57b7a2 |
children | 2ac52d89619e |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Thu Jun 20 17:09:31 2019 +0200 +++ b/pkg/controllers/routes.go Thu Jun 20 18:04:53 2019 +0200 @@ -104,10 +104,8 @@ NoConn: true, }).Methods(http.MethodPost) - api.Handle("/users/passwordreset/{hash}", &JSONHandler{ - Handle: passwordReset, - NoConn: true, - }).Methods(http.MethodGet) + api.HandleFunc("/users/passwordreset/{hash}", passwordReset). + Methods(http.MethodGet) // Print templates api.Handle("/templates", any(&JSONHandler{