Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Set username on unlock (#481)
Leendert de Borst33283e07bed5
diff --git a/src/AliasVault.Client/Auth/Pages/Unlock.razor b/src/AliasVault.Client/Auth/Pages/Unlock.razorindex 6bf15d316..75fa18497 100644--- a/src/AliasVault.Client/Auth/Pages/Unlock.razor+++ b/src/AliasVault.Client/Auth/Pages/Unlock.razor@@ -157,6 +157,7 @@ else}// Store the encryption key in memory.+ AuthService.StoreUsername(Username);await AuthService.StoreEncryptionKeyAsync(passwordHash);// Redirect to the page the user was trying to access before if set.diff --git a/src/AliasVault.Client/Services/Auth/AuthService.cs b/src/AliasVault.Client/Services/Auth/AuthService.csindex 3316f9dee..d7f7a8b7b 100644--- a/src/AliasVault.Client/Services/Auth/AuthService.cs+++ b/src/AliasVault.Client/Services/Auth/AuthService.cs@@ -94,9 +94,9 @@ public sealed class AuthService(HttpClient httpClient, ILocalStorageService loca/// to prevent any conflicts during future vault saves./// </summary>/// <param name="username">The username of the currently logged-in user.</param>- public void StoreUsername(string username)+ public void StoreUsername(string? username){- _username = username;+ _username = username ?? string.Empty;}/// <summary>