Fix staging login issue
This commit is contained in:
@@ -263,12 +263,13 @@ angular.module('app')
|
||||
return;
|
||||
} else {
|
||||
// sign out
|
||||
authManager.signOut();
|
||||
syncManager.destroyLocalData(function(){
|
||||
window.location.reload();
|
||||
})
|
||||
}
|
||||
} else {
|
||||
authManager.login(server, email, pw, false, function(response){
|
||||
authManager.login(server, email, pw, false, {}, function(response){
|
||||
window.location.reload();
|
||||
})
|
||||
}
|
||||
|
||||
@@ -173,7 +173,6 @@ class AccountMenu {
|
||||
$rootScope.$broadcast("major-data-change");
|
||||
$scope.clearDatabaseAndRewriteAllItems(true, block);
|
||||
}
|
||||
|
||||
else {
|
||||
modelManager.resetLocalMemory();
|
||||
storageManager.clearAllModels(function(){
|
||||
|
||||
Reference in New Issue
Block a user