Fix staging login issue
This commit is contained in:
@@ -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();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user