|
|
@ -306,6 +306,8 @@ authenticationController.logout = function(req, res, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
req.logout();
|
|
|
|
req.logout();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
user.setUserField(uid, 'lastonline', Date.now() - 300000);
|
|
|
|
|
|
|
|
|
|
|
|
// action:user.loggedOut deprecated in > v0.9.3
|
|
|
|
// action:user.loggedOut deprecated in > v0.9.3
|
|
|
|
plugins.fireHook('action:user.loggedOut', {req: req, res: res, uid: uid});
|
|
|
|
plugins.fireHook('action:user.loggedOut', {req: req, res: res, uid: uid});
|
|
|
|
plugins.fireHook('static:user.loggedOut', {req: req, res: res, uid: uid}, function() {
|
|
|
|
plugins.fireHook('static:user.loggedOut', {req: req, res: res, uid: uid}, function() {
|
|
|
|