Skip to content

Commit

Permalink
N21-2200 Move logout to nest (#3528)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap authored Oct 10, 2024
1 parent 4d2304a commit b98ed09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down

0 comments on commit b98ed09

Please sign in to comment.