🐛 Fix disable factor did not update

This commit is contained in:
LittleSheep 2025-06-07 02:37:35 +08:00
parent af39694be6
commit 8938d347c6

View File

@ -184,6 +184,9 @@ public class AccountService(
"Disabling this auth factor will cause you have no active auth factors.");
factor.EnabledAt = SystemClock.Instance.GetCurrentInstant();
db.Update(factor);
await db.SaveChangesAsync();
return factor;
}