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)); });