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