diff --git a/src/routes/cloudron.js b/src/routes/cloudron.js index 73d9b5375..5597b078d 100644 --- a/src/routes/cloudron.js +++ b/src/routes/cloudron.js @@ -81,9 +81,7 @@ function logout(req, res) { if (!token) return res.redirect('/login.html'); - tokendb.delByAccessToken(token, function () { - res.redirect('/index.html'); - }); + tokendb.delByAccessToken(token, function () { res.redirect('/login.html'); }); } function passwordReset(req, res, next) {