mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Allow for multiple Accounts.onLogin callbacks on the client.
- Needed to return true in onLoginHook and onLoginFailureHook iterators.
This commit is contained in:
committed by
Sashko Stubailo
parent
b7fad6ba34
commit
36ece1f957
@@ -108,10 +108,12 @@ Ap.callLoginMethod = function (options) {
|
||||
if (!error) {
|
||||
self._onLoginHook.each(function (callback) {
|
||||
callback();
|
||||
return true;
|
||||
});
|
||||
} else {
|
||||
self._onLoginFailureHook.each(function (callback) {
|
||||
callback();
|
||||
return true;
|
||||
});
|
||||
}
|
||||
options.userCallback.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user