9ae5ede8 by Adam Heath

Add a callout during login to allow end-users to attach things to the

login promise.
1 parent 143960ce
...@@ -251,6 +251,10 @@ define(function(require) { ...@@ -251,6 +251,10 @@ define(function(require) {
251 } else { 251 } else {
252 result = $.Deferred().resolve().promise(); 252 result = $.Deferred().resolve().promise();
253 } 253 }
254 var onLogin = self.get('onLogin');
255 if (onLogin) {
256 result = onLogin(result);
257 }
254 return result; 258 return result;
255 }; 259 };
256 this.logout = function() { 260 this.logout = function() {
......