diff --git a/services/web/app/coffee/Features/PasswordReset/PasswordResetRouter.coffee b/services/web/app/coffee/Features/PasswordReset/PasswordResetRouter.coffee index 5a0afd9eef..057304d458 100644 --- a/services/web/app/coffee/Features/PasswordReset/PasswordResetRouter.coffee +++ b/services/web/app/coffee/Features/PasswordReset/PasswordResetRouter.coffee @@ -1,11 +1,14 @@ PasswordResetController = require("./PasswordResetController") +AuthenticationController = require('../Authentication/AuthenticationController') module.exports = apply: (app) -> app.get '/user/password/reset', PasswordResetController.renderRequestResetForm app.post '/user/password/reset', PasswordResetController.requestReset + AuthenticationController.addEndpointToLoginWhitelist '/user/password/reset' app.get '/user/password/set', PasswordResetController.renderSetPasswordForm app.post '/user/password/set', PasswordResetController.setNewUserPassword + AuthenticationController.addEndpointToLoginWhitelist '/user/password/set'