diff --git a/js/controllers/login-controller.js b/js/controllers/login-controller.js index d2bc67f..56f294e 100644 --- a/js/controllers/login-controller.js +++ b/js/controllers/login-controller.js @@ -138,7 +138,7 @@ app.controller('loginCtrl', [ vm.signOut = function () { // TODO the sign-out url for each account should be fixed. return Auth.signOut().then(function () { - if (!Auth.hasSession()) { + if (Auth.sessions.length === 0) { $location.path('/splash-page'); return; }