Enhance password policy and update hints for user registration
- Updated password requirements in the dependency injection configuration to enforce the use of at least one digit and one uppercase letter. - Modified password hint messages in both Russian and English to reflect the new password policy, ensuring clarity for users during registration.
This commit is contained in:
@@ -39,6 +39,9 @@ public static class DependencyInjection
|
||||
{
|
||||
options.User.RequireUniqueEmail = false;
|
||||
options.Password.RequiredLength = 8;
|
||||
options.Password.RequireDigit = true;
|
||||
options.Password.RequireUppercase = true;
|
||||
options.Password.RequireNonAlphanumeric = false;
|
||||
options.Lockout.MaxFailedAccessAttempts = 5;
|
||||
options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(5);
|
||||
options.Lockout.AllowedForNewUsers = true;
|
||||
|
||||
Reference in New Issue
Block a user