2019-05-29 05:21:06 -04:00
|
|
|
const PasswordResetController = require('./PasswordResetController')
|
|
|
|
const AuthenticationController = require('../Authentication/AuthenticationController')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
apply(webRouter, apiRouter) {
|
|
|
|
webRouter.get(
|
|
|
|
'/user/password/reset',
|
|
|
|
PasswordResetController.renderRequestResetForm
|
|
|
|
)
|
|
|
|
webRouter.post('/user/password/reset', PasswordResetController.requestReset)
|
|
|
|
AuthenticationController.addEndpointToLoginWhitelist('/user/password/reset')
|
|
|
|
|
|
|
|
webRouter.get(
|
|
|
|
'/user/password/set',
|
|
|
|
PasswordResetController.renderSetPasswordForm
|
|
|
|
)
|
|
|
|
webRouter.post(
|
|
|
|
'/user/password/set',
|
|
|
|
PasswordResetController.setNewUserPassword
|
|
|
|
)
|
|
|
|
AuthenticationController.addEndpointToLoginWhitelist('/user/password/set')
|
|
|
|
|
2019-07-04 08:40:12 -04:00
|
|
|
webRouter.post('/user/reconfirm', PasswordResetController.requestReset)
|
2019-05-29 05:21:06 -04:00
|
|
|
}
|
|
|
|
}
|