mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add error handling on logout
This commit is contained in:
parent
6569e34873
commit
53bd2cfd33
1 changed files with 2 additions and 1 deletions
|
@ -133,8 +133,9 @@ module.exports = UserController =
|
|||
SudoModeHandler.clearSudoMode(user._id)
|
||||
cb()
|
||||
|
||||
logout : (req, res)->
|
||||
logout : (req, res, next)->
|
||||
UserController._doLogout req, (err) ->
|
||||
return next(err) if err?
|
||||
res.redirect '/login'
|
||||
|
||||
register : (req, res, next = (error) ->)->
|
||||
|
|
Loading…
Reference in a new issue