catch decryption failure on login previews
This commit is contained in:
parent
2beb22e8cf
commit
e5e7712716
|
@ -78,9 +78,9 @@ angular
|
||||||
|
|
||||||
var loginData = encryptedCipher.Data || encryptedCipher;
|
var loginData = encryptedCipher.Data || encryptedCipher;
|
||||||
if (loginData) {
|
if (loginData) {
|
||||||
login.name = cryptoService.decrypt(loginData.Name, key);
|
login.name = _service.decryptProperty(loginData.Name, key, false);
|
||||||
login.username = loginData.Username && loginData.Username !== '' ? cryptoService.decrypt(loginData.Username, key) : null;
|
login.username = _service.decryptProperty(loginData.Username, key, true);
|
||||||
login.password = loginData.Password && loginData.Password !== '' ? cryptoService.decrypt(loginData.Password, key) : null;
|
login.password = _service.decryptProperty(loginData.Password, key, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
return login;
|
return login;
|
||||||
|
|
Loading…
Reference in New Issue