mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Add error handling on logout
This commit is contained in:
@@ -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) ->)->
|
||||
|
||||
Reference in New Issue
Block a user