mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
disable emails endpoint when externalAuthenticationSystemUsed is true
This commit is contained in:
parent
0777e44abf
commit
3581aa3ccb
1 changed files with 12 additions and 9 deletions
|
@ -111,6 +111,12 @@ module.exports = class Router
|
|||
webRouter.get '/user/emails',
|
||||
AuthenticationController.requireLogin(),
|
||||
UserEmailsController.list
|
||||
webRouter.get '/user/emails/confirm',
|
||||
UserEmailsController.showConfirm
|
||||
webRouter.post '/user/emails/confirm',
|
||||
UserEmailsController.confirm
|
||||
|
||||
unless Features.externalAuthenticationSystemUsed()
|
||||
webRouter.post '/user/emails',
|
||||
AuthenticationController.requireLogin(),
|
||||
UserEmailsController.add
|
||||
|
@ -120,10 +126,7 @@ module.exports = class Router
|
|||
webRouter.post '/user/emails/default',
|
||||
AuthenticationController.requireLogin(),
|
||||
UserEmailsController.setDefault
|
||||
webRouter.get '/user/emails/confirm',
|
||||
UserEmailsController.showConfirm
|
||||
webRouter.post '/user/emails/confirm',
|
||||
UserEmailsController.confirm
|
||||
|
||||
|
||||
webRouter.get '/user/sessions',
|
||||
AuthenticationController.requireLogin(),
|
||||
|
|
Loading…
Reference in a new issue