fix(database): preserve RDP domain during startup backfill (#1497)

This commit is contained in:
ZacharyZcR authored and GitHub committed 2026-09-30 09:50:32 -05:00
1 parent 1f4b1ff6a4
commit 5b0423c8e0
3 files changed
+110 -1

No files matched your search

@@ -139,7 +139,8 @@ export function legacyLogin(
password = openLegacySecret(row.password, dek, recordId, ["password"]);
domain = protocol.domain ? text(row.domain) : "";
if (!username && !password && !domain) return null;
} else if (protocol.domain && !domain) {
} else if (protocol.domain && row[protocol.domain] == null) {
// A saved empty domain was cleared on purpose, so only fill a missing one.
domain = text(row.domain);
}