catch decryption failure on login previews

This commit is contained in:
Kyle Spearrin 2017-08-01 00:13:10 -04:00
parent 2beb22e8cf
commit e5e7712716
1 changed files with 3 additions and 3 deletions

View File

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