|
|
@ -471,7 +471,7 @@ authenticationController.logout = async function (req, res, next) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await user.auth.revokeSession(sessionID, uid);
|
|
|
|
await user.auth.revokeSession(sessionID, uid);
|
|
|
|
await logoutAsync();
|
|
|
|
await logoutAsync(req);
|
|
|
|
|
|
|
|
|
|
|
|
await destroyAsync(req);
|
|
|
|
await destroyAsync(req);
|
|
|
|
res.clearCookie(nconf.get('sessionKey'), meta.configs.cookie.get());
|
|
|
|
res.clearCookie(nconf.get('sessionKey'), meta.configs.cookie.get());
|
|
|
|