Allow only non-deleted creds to be added to autofill (#1015)

This commit is contained in:
Matt Smith 2020-07-16 11:53:02 -05:00 committed by GitHub
parent 10a78c1c94
commit 086c71126f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ namespace Bit.iOS.Core.Utilities
var cipherService = ServiceContainer.Resolve<ICipherService>("cipherService"); var cipherService = ServiceContainer.Resolve<ICipherService>("cipherService");
var identities = new List<ASPasswordCredentialIdentity>(); var identities = new List<ASPasswordCredentialIdentity>();
var ciphers = await cipherService.GetAllDecryptedAsync(); var ciphers = await cipherService.GetAllDecryptedAsync();
foreach (var cipher in ciphers) foreach (var cipher in ciphers.Where(x => !x.IsDeleted))
{ {
var identity = ToCredentialIdentity(cipher); var identity = ToCredentialIdentity(cipher);
if (identity != null) if (identity != null)