mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user