From b98ed0905cabd7653a93bff638c3132c64c225c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20=C3=96hlerking?= <103562092+MarvinOehlerkingCap@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:26:51 +0200 Subject: [PATCH] N21-2200 Move logout to nest (#3528) --- controllers/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/login.js b/controllers/login.js index bcdd9e79e3..7e52b7f0f4 100644 --- a/controllers/login.js +++ b/controllers/login.js @@ -463,8 +463,8 @@ const sessionDestroyer = (req, res, rej, next) => { }; router.get('/logout/', (req, res, next) => { - api(req) - .del('/authentication') // async, ignore result + api(req, { version: 'v3' }) + .post('/logout') // async, ignore result .catch((err) => { logger.error('error during logout.', formatError(err)); });