Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
3720:1525ead37a2e | 3721:ed4820efb7e6 |
---|---|
102 Input: func(*http.Request) interface{} { return new(models.PWResetUser) }, | 102 Input: func(*http.Request) interface{} { return new(models.PWResetUser) }, |
103 Handle: passwordResetRequest, | 103 Handle: passwordResetRequest, |
104 NoConn: true, | 104 NoConn: true, |
105 }).Methods(http.MethodPost) | 105 }).Methods(http.MethodPost) |
106 | 106 |
107 api.Handle("/users/passwordreset/{hash}", &JSONHandler{ | 107 api.HandleFunc("/users/passwordreset/{hash}", passwordReset). |
108 Handle: passwordReset, | 108 Methods(http.MethodGet) |
109 NoConn: true, | |
110 }).Methods(http.MethodGet) | |
111 | 109 |
112 // Print templates | 110 // Print templates |
113 api.Handle("/templates", any(&JSONHandler{ | 111 api.Handle("/templates", any(&JSONHandler{ |
114 Handle: listPrintTemplates, | 112 Handle: listPrintTemplates, |
115 })).Methods(http.MethodGet) | 113 })).Methods(http.MethodGet) |