Add a callout during login to allow end-users to attach things to the
login promise.
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -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() { | ... | ... |
-
Please register or sign in to post a comment