Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add default service URL check to update (#233)
Leendert de Borst9f87861f881b
diff --git a/src/AliasVault.Client/Services/CredentialService.cs b/src/AliasVault.Client/Services/CredentialService.csindex 087ce9820..fe245de09 100644--- a/src/AliasVault.Client/Services/CredentialService.cs+++ b/src/AliasVault.Client/Services/CredentialService.cs@@ -118,7 +118,7 @@ public sealed class CredentialService(HttpClient httpClient, DbService dbService}// If the URL equals the placeholder, we set it to null.- if (loginObject.Service.Url == "https://")+ if (loginObject.Service.Url == DefaultServiceUrl){loginObject.Service.Url = null;}@@ -199,6 +199,12 @@ public sealed class CredentialService(HttpClient httpClient, DbService dbServiceloginObject.Alias.Email = null;}+ // If the URL equals the placeholder, we set it to null.+ if (loginObject.Service.Url == DefaultServiceUrl)+ {+ loginObject.Service.Url = null;+ }+login.UpdatedAt = DateTime.UtcNow;login.Notes = loginObject.Notes;login.Username = loginObject.Username;