|
|
|
@ -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) {
|
|
|
|
|