869436a0 by Adam Heath

Return the deferred in auth.logout().

Refs: #7992
1 parent 26baf78d
......@@ -250,7 +250,7 @@ define(function(require) {
};
this.logout = function() {
_.invoke(this.get('providers').values(), 'logout');
api('auth:logout');
return api('auth:logout');
};
bindMethods(this, 'login', 'logout');
},
......