From e29085b8c2566eac5862a5e227d69bce093c9c26 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Fri, 18 Aug 2017 16:58:17 -0600 Subject: [PATCH] fixed logout --- js/controllers/login-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }