diff --git a/lib/routes/admin-api/user.js b/lib/routes/admin-api/user.js index e678670bbb..e4b5fe036d 100644 --- a/lib/routes/admin-api/user.js +++ b/lib/routes/admin-api/user.js @@ -30,6 +30,9 @@ class UserController extends Controller { if (req.session) { req.session = null; } + if (req.logout) { + req.logout(); + } res.redirect('/'); } }