Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Remove console writelines (#914)

Leendert de Borsteb64d86c7892
diff --git a/apps/server/AliasVault.Client/Services/Auth/AuthService.cs b/apps/server/AliasVault.Client/Services/Auth/AuthService.cs
index 21b439ba9..4690c9805 100644
--- a/apps/server/AliasVault.Client/Services/Auth/AuthService.cs
+++ b/apps/server/AliasVault.Client/Services/Auth/AuthService.cs
@@ -224,17 +224,11 @@ public sealed class AuthService(HttpClient httpClient, ILocalStorageService loca
{
await localStorage.SetItemAsStringAsync("webAuthnEnabled", enabled.ToString().ToLower());
- Console.WriteLine($"Set webAuthnEnabled to {enabled}");
-
// Encrypt the current encryption key with the webauthn derived key and store it in local storage.
if (enabled && !string.IsNullOrEmpty(webauthCredentialId) && !string.IsNullOrEmpty(webauthSalt) && !string.IsNullOrEmpty(webauthCredentialDerivedKey))
{
- Console.WriteLine("Encrypting encryption key with webauthn derived key");
var encryptionKeyBase64 = Convert.ToBase64String(GetEncryptionKey());
- Console.WriteLine($"encryptionKeyBase64: {encryptionKeyBase64}");
var encryptedEncryptionKey = await jsInteropService.SymmetricEncrypt(encryptionKeyBase64, webauthCredentialDerivedKey);
- Console.WriteLine($"encryptedEncryptionKey: {encryptedEncryptionKey}");
- Console.WriteLine($"webauthCredentialDerivedKey: {webauthCredentialDerivedKey}");
await localStorage.SetItemAsStringAsync("webAuthnCredentialId", webauthCredentialId);
await localStorage.SetItemAsStringAsync("webAuthnSalt", webauthSalt);
await localStorage.SetItemAsStringAsync("webAuthnEncryptedEncryptionKey", encryptedEncryptionKey);
diff --git a/apps/server/AliasVault.Client/Services/CredentialService.cs b/apps/server/AliasVault.Client/Services/CredentialService.cs
index d79a74a39..eafa60868 100644
--- a/apps/server/AliasVault.Client/Services/CredentialService.cs
+++ b/apps/server/AliasVault.Client/Services/CredentialService.cs
@@ -60,8 +60,6 @@ public sealed class CredentialService(HttpClient httpClient, DbService dbService
// Generate a random identity using the TypeScript library
var identity = await jsInteropService.GenerateRandomIdentityAsync(dbService.Settings.DefaultIdentityLanguage);
- Console.WriteLine($"Generated identity: {identity.FirstName} {identity.LastName} {identity.BirthDate} {identity.Gender} {identity.NickName}");
-
// Generate random values for the Identity properties
credential.Username = identity.NickName;
credential.Alias.FirstName = identity.FirstName;