🐛 Fix create auth factor missing account id

This commit is contained in:
LittleSheep 2025-06-05 01:48:19 +08:00
parent f961469db1
commit f62d86d4a7

View File

@ -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;