🐛 Fix newly create account's auth factor has not been activated.

This commit is contained in:
LittleSheep 2025-06-08 19:46:29 +08:00
parent de64f64c0e
commit 4bae2ea427

View File

@ -106,7 +106,8 @@ public class AccountController(
new AccountAuthFactor new AccountAuthFactor
{ {
Type = AccountAuthFactorType.Password, Type = AccountAuthFactorType.Password,
Secret = request.Password Secret = request.Password,
EnabledAt = SystemClock.Instance.GetCurrentInstant()
}.HashSecret() }.HashSecret()
}, },
Profile = new Profile() Profile = new Profile()