Return the deferred in auth.logout().
Refs: #7992
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -250,7 +250,7 @@ define(function(require) { | ... | @@ -250,7 +250,7 @@ define(function(require) { |
250 | }; | 250 | }; |
251 | this.logout = function() { | 251 | this.logout = function() { |
252 | _.invoke(this.get('providers').values(), 'logout'); | 252 | _.invoke(this.get('providers').values(), 'logout'); |
253 | api('auth:logout'); | 253 | return api('auth:logout'); |
254 | }; | 254 | }; |
255 | bindMethods(this, 'login', 'logout'); | 255 | bindMethods(this, 'login', 'logout'); |
256 | }, | 256 | }, | ... | ... |
-
Please register or sign in to post a comment