PasswordResetRouter.coffee 647 B

1234567891011121314
  1. PasswordResetController = require("./PasswordResetController")
  2. AuthenticationController = require('../Authentication/AuthenticationController')
  3. module.exports =
  4. apply: (app) ->
  5. app.get '/user/password/reset', PasswordResetController.renderRequestResetForm
  6. app.post '/user/password/reset', PasswordResetController.requestReset
  7. AuthenticationController.addEndpointToLoginWhitelist '/user/password/reset'
  8. app.get '/user/password/set', PasswordResetController.renderSetPasswordForm
  9. app.post '/user/password/set', PasswordResetController.setNewUserPassword
  10. AuthenticationController.addEndpointToLoginWhitelist '/user/password/set'