feat(auth): replace TOTP with phone-first login
This commit is contained in:
@@ -92,8 +92,7 @@ public static class DevelopmentPlatformAdminSeeder
|
||||
Name = "Local Platform Administrator",
|
||||
EmailConfirmed = true,
|
||||
Status = UserStatus.Active,
|
||||
ForcePasswordChange = true,
|
||||
TwoFactorEnabled = false
|
||||
ForcePasswordChange = true
|
||||
};
|
||||
var passwordHasher = new PasswordHasher<User>(Options.Create(new PasswordHasherOptions
|
||||
{
|
||||
@@ -145,7 +144,6 @@ public static class DevelopmentPlatformAdminSeeder
|
||||
user.Email,
|
||||
RoleCode,
|
||||
ForcePasswordChange = true,
|
||||
MfaEnrollmentRequired = true,
|
||||
Source = "ef_core_use_seeding"
|
||||
})
|
||||
});
|
||||
@@ -187,6 +185,6 @@ public static class DevelopmentPlatformAdminSeeder
|
||||
Console.WriteLine("Development platform administrator created by EF Core data seeding.");
|
||||
Console.WriteLine($" Account: {Email}");
|
||||
Console.WriteLine($" Temporary password: {temporaryPassword}");
|
||||
Console.WriteLine(" Change the password and enroll TOTP MFA at first sign-in. This password is shown only once.");
|
||||
Console.WriteLine(" Change the temporary password at first sign-in. This password is shown only once.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user