barisusakli 9 years ago
parent 37b1d3c8be
commit 5f76695d5a

@ -199,6 +199,12 @@ authenticationController.doLogin = function(req, uid, callback) {
return callback(err);
}
authenticationController.onSuccessfulLogin(req, uid, callback);
});
};
authenticationController.onSuccessfulLogin = function(req, uid, callback) {
callback = callback || function() {};
var uuid = utils.generateUUID();
req.session.meta = {};
@ -230,7 +236,6 @@ authenticationController.doLogin = function(req, uid, callback) {
plugins.fireHook('action:user.loggedIn', uid);
callback();
});
});
};
authenticationController.localLogin = function(req, username, password, next) {

Loading…
Cancel
Save