mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 05:51:29 -05:00
1cc0cbe8fc
web router has things like sessions etc added onto it. Api router is minimal, doesn't include things like csrf
14 lines
688 B
CoffeeScript
14 lines
688 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'
|
|
|