feat(auth): replace TOTP with phone-first login
This commit is contained in:
@@ -78,8 +78,7 @@ public sealed class PlatformAdminBootstrapper(
|
||||
Name = string.IsNullOrWhiteSpace(options.DisplayName) ? "Platform Administrator" : options.DisplayName.Trim(),
|
||||
EmailConfirmed = true,
|
||||
Status = UserStatus.Active,
|
||||
ForcePasswordChange = true,
|
||||
TwoFactorEnabled = false
|
||||
ForcePasswordChange = true
|
||||
};
|
||||
var createResult = await userManager.CreateAsync(user, options.TemporaryPassword);
|
||||
if (!createResult.Succeeded)
|
||||
@@ -140,7 +139,7 @@ public sealed class PlatformAdminBootstrapper(
|
||||
user.Email,
|
||||
RoleCode = SuperAdminRoleCode,
|
||||
ForcePasswordChange = true,
|
||||
MfaEnrollmentRequired = true
|
||||
LoginMethod = "account_password"
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user