2014-05-15 12:16:20 -04:00
|
|
|
PasswordResetController = require("./PasswordResetController")
|
2015-04-30 06:58:26 -04:00
|
|
|
AuthenticationController = require('../Authentication/AuthenticationController')
|
2014-05-15 12:16:20 -04:00
|
|
|
|
2014-05-15 11:20:23 -04:00
|
|
|
module.exports =
|
2015-06-30 09:38:32 -04:00
|
|
|
apply: (webRouter, apiRouter) ->
|
2014-05-15 11:20:23 -04:00
|
|
|
|
2015-06-30 09:38:32 -04:00
|
|
|
webRouter.get '/user/password/reset', PasswordResetController.renderRequestResetForm
|
|
|
|
webRouter.post '/user/password/reset', PasswordResetController.requestReset
|
2015-04-30 06:58:26 -04:00
|
|
|
AuthenticationController.addEndpointToLoginWhitelist '/user/password/reset'
|
2014-05-15 11:20:23 -04:00
|
|
|
|
2015-06-30 09:38:32 -04:00
|
|
|
webRouter.get '/user/password/set', PasswordResetController.renderSetPasswordForm
|
|
|
|
webRouter.post '/user/password/set', PasswordResetController.setNewUserPassword
|
2015-04-30 06:58:26 -04:00
|
|
|
AuthenticationController.addEndpointToLoginWhitelist '/user/password/set'
|
2014-05-15 11:20:23 -04:00
|
|
|
|
2019-04-17 10:00:13 -04:00
|
|
|
webRouter.post '/user/reconfirm', PasswordResetController.requestReset
|