1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 10:54:00 +00:00

Don't sync invalid password ciphers to autofill (#18783)

This commit is contained in:
Isaiah Inuwa
2026-02-13 11:01:42 -06:00
committed by jaasen-livefront
parent 2bb50e416d
commit e4c254beaf

View File

@@ -150,11 +150,13 @@ export class DesktopAutofillService implements OnDestroy {
passwordCredentials = cipherViews
.filter(
(cipher) =>
!cipher.isDeleted &&
cipher.type === CipherType.Login &&
cipher.login.uris?.length > 0 &&
cipher.login.uris.some((uri) => uri.match !== UriMatchStrategy.Never) &&
cipher.login.uris.some((uri) => !Utils.isNullOrWhitespace(uri.uri)) &&
!Utils.isNullOrWhitespace(cipher.login.username),
!Utils.isNullOrWhitespace(cipher.login.username) &&
!Utils.isNullOrWhitespace(cipher.login.password),
)
.map((cipher) => ({
type: "password",