mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
f455a11aa8
Reconfirm user accounts GitOrigin-RevId: 0343ff745e881cd51b5efbfb97404b6b926905c8
15 lines
No EOL
760 B
CoffeeScript
15 lines
No EOL
760 B
CoffeeScript
PasswordResetController = require("./PasswordResetController")
|
|
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'
|
|
|
|
webRouter.post '/user/reconfirm', PasswordResetController.requestReset |