mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-18 21:40:41 -04:00
Remove console writelines (#914)
This commit is contained in:
committed by
Leendert de Borst
parent
ef2a58f784
commit
eb64d86c78
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user