From 42cfd938204dbff88fba6a9ebf646a0e71e51107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Wed, 3 Apr 2019 19:24:57 +0200 Subject: [PATCH] fix: trigger actual logout on request --- lib/routes/admin-api/user.js | 3 +++ 1 file changed, 3 insertions(+) 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('/'); } }