diff --git a/DysonNetwork.Sphere/Account/AccountService.cs b/DysonNetwork.Sphere/Account/AccountService.cs index 0d59fe3..5db8755 100644 --- a/DysonNetwork.Sphere/Account/AccountService.cs +++ b/DysonNetwork.Sphere/Account/AccountService.cs @@ -143,6 +143,7 @@ public class AccountService( } if (factor is null) throw new InvalidOperationException("Unable to create auth factor."); + factor.AccountId = account.Id; db.AccountAuthFactors.Add(factor); await db.SaveChangesAsync(); return factor;