Merge pull request #1913 from overleaf/jel-v1-logout

Remove the v1-logout endpoint

GitOrigin-RevId: 4a31f277c2cf1fa0f8c76c546728dae3eb7665c7
This commit is contained in:
Hugh O'Brien 2019-07-01 16:20:50 +01:00 committed by sharelatex
parent b1e8cb9cf0
commit f84c43a7b7

View file

@ -254,10 +254,7 @@ module.exports = UserController = {
if (err != null) { if (err != null) {
return next(err) return next(err)
} }
const redirect_url = const redirect_url = '/login'
settings.overleaf != null
? settings.overleaf.host + '/users/ensure_signed_out'
: '/login'
return res.redirect(redirect_url) return res.redirect(redirect_url)
}) })
}, },