869436a0 by Adam Heath

Return the deferred in auth.logout().

Refs: #7992
1 parent 26baf78d
...@@ -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 },
......