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

@@ -77,7 +77,7 @@ angular.module('app')
var keys = this.keys();
if(keys && keys.ak) {
return "3";
return "003";
} else {
return "001";
}
@@ -90,7 +90,7 @@ angular.module('app')
}
this.isProtocolVersionSupported = function(version) {
var supportedVersions = ["001", "002", "3"];
var supportedVersions = ["001", "002", "003"];
return supportedVersions.includes(version);
}

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);