fix(crypto): add protections for decryption

This commit is contained in:
Hivert Quentin committed 2024-02-09 16:16:19 +01:00
1 parent 311c358580
commit a6319e1689
4 files changed
+15 -5

No files matched your search

+2
View File
@@ -1624,6 +1624,8 @@ static NSArray *reminderValues = nil;
[oldAccount objectForKey: @"name"], [exception reason]];
decryptedPassword = @"";
}
else if(!decryptedPassword)
[self errorWithFormat:@"No exception but decrypted password is empty for account %@",[oldAccount objectForKey: @"name"]];
else
password = decryptedPassword;
NS_HANDLER