This commit is contained in:
Mo Bitar
2018-05-15 12:43:35 -05:00
parent 8307fd4446
commit 543019e63c
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ angular.module('app')
}
this.encryptLocalStorage = function(keys, authParams) {
storageManager.setKeys(keys);
storageManager.setKeys(keys, authParams);
// Switch to Ephemeral storage, wiping Fixed storage
// Last argument is `force`, which we set to true because in the case of changing passcode
storageManager.setItemsMode(authManager.isEphemeralSession() ? StorageManager.Ephemeral : StorageManager.FixedEncrypted, true);