handle null condition when decrypting
This commit is contained in:
parent
7042f4bca8
commit
0d29c75e7f
|
@ -125,10 +125,10 @@ angular
|
|||
property = cryptoService.decrypt(property, key);
|
||||
}
|
||||
catch (err) {
|
||||
property = '[error: cannot decrypt]';
|
||||
property = null;
|
||||
}
|
||||
|
||||
return property;
|
||||
return property || '[error: cannot decrypt]';
|
||||
};
|
||||
|
||||
_service.encryptLogins = function (unencryptedLogins, key) {
|
||||
|
|
Loading…
Reference in New Issue