From f62d86d4a736d25c2f80dde96be2b57a35a4a159 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 5 Jun 2025 01:48:19 +0800 Subject: [PATCH] :bug: Fix create auth factor missing account id --- DysonNetwork.Sphere/Account/AccountService.cs | 1 + 1 file changed, 1 insertion(+) 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;