fixed logout

This commit is contained in:
Jon Lambson 2017-08-18 16:58:17 -06:00
parent b2759252e3
commit e29085b8c2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}