# HG changeset patch # User Sascha L. Teichmann # Date 1537526919 -7200 # Node ID 3e9f0070c33e06065c7e7bc3b1cae2b2cc4ecdb9 # Parent 35fd15711e9ed76c91d679fd12c85bb83bd93f17 Password reset endpoints do not need impersonated db connections. Make that clear to the JSONHandler. It works without it but this way it's more explicit. diff -r 35fd15711e9e -r 3e9f0070c33e pkg/controllers/routes.go --- a/pkg/controllers/routes.go Fri Sep 21 12:26:39 2018 +0200 +++ b/pkg/controllers/routes.go Fri Sep 21 12:48:39 2018 +0200 @@ -47,10 +47,12 @@ api.Handle("/users/passwordreset", &JSONHandler{ Input: func() interface{} { return new(models.PWResetUser) }, Handle: passwordResetRequest, + NoConn: true, }).Methods(http.MethodPost) api.Handle("/users/passwordreset/{hash}", &JSONHandler{ Handle: passwordReset, + NoConn: true, }).Methods(http.MethodGet) // External proxies.