Updates
This commit is contained in:
@@ -77,7 +77,7 @@ angular.module('app')
|
|||||||
|
|
||||||
var keys = this.keys();
|
var keys = this.keys();
|
||||||
if(keys && keys.ak) {
|
if(keys && keys.ak) {
|
||||||
return "3";
|
return "003";
|
||||||
} else {
|
} else {
|
||||||
return "001";
|
return "001";
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ angular.module('app')
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.isProtocolVersionSupported = function(version) {
|
this.isProtocolVersionSupported = function(version) {
|
||||||
var supportedVersions = ["001", "002", "3"];
|
var supportedVersions = ["001", "002", "003"];
|
||||||
return supportedVersions.includes(version);
|
return supportedVersions.includes(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ angular.module('app')
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.encryptLocalStorage = function(keys, authParams) {
|
this.encryptLocalStorage = function(keys, authParams) {
|
||||||
storageManager.setKeys(keys);
|
storageManager.setKeys(keys, authParams);
|
||||||
// Switch to Ephemeral storage, wiping Fixed storage
|
// Switch to Ephemeral storage, wiping Fixed storage
|
||||||
// Last argument is `force`, which we set to true because in the case of changing passcode
|
// 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);
|
storageManager.setItemsMode(authManager.isEphemeralSession() ? StorageManager.Ephemeral : StorageManager.FixedEncrypted, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user