Fix staging login issue

This commit is contained in:
Mo Bitar
2018-02-06 23:10:04 -06:00
parent dd21392ae1
commit 1a1ead9786
2 changed files with 2 additions and 2 deletions

View File

@@ -263,12 +263,13 @@ angular.module('app')
return; return;
} else { } else {
// sign out // sign out
authManager.signOut();
syncManager.destroyLocalData(function(){ syncManager.destroyLocalData(function(){
window.location.reload(); window.location.reload();
}) })
} }
} else { } else {
authManager.login(server, email, pw, false, function(response){ authManager.login(server, email, pw, false, {}, function(response){
window.location.reload(); window.location.reload();
}) })
} }

View File

@@ -173,7 +173,6 @@ class AccountMenu {
$rootScope.$broadcast("major-data-change"); $rootScope.$broadcast("major-data-change");
$scope.clearDatabaseAndRewriteAllItems(true, block); $scope.clearDatabaseAndRewriteAllItems(true, block);
} }
else { else {
modelManager.resetLocalMemory(); modelManager.resetLocalMemory();
storageManager.clearAllModels(function(){ storageManager.clearAllModels(function(){