In a project where user registration is done programmatically, you want to ensure that users have a strong password and are locked out after 5 incorrect login attempts. Which class should you configure to enforce these rules?
- IdentityUser
- IdentityRole
- PasswordHasher
- IdentityOptions
To enforce password strength rules and configure account lockout settings, you should configure the IdentityOptions class. This class allows you to set various security-related options, including password complexity requirements and account lockout thresholds.
Loading...
Related Quiz
- You're trying to create a basic form in a Razor view to capture user feedback. Which tag helper would you use to create a textbox for users to type in their comments?
- You're noticing that despite having global exception handling set up in your ASP.NET Core application, certain exceptions aren't being caught. What might be a plausible reason for this behavior and how can you ensure all exceptions are captured?
- In a CI/CD pipeline, what does the acronym CI stand for?
- Which ASP.NET Core feature allows you to implement authentication and authorization logic to protect your Web APIs?
- You've just started with ASP.NET Core and want to set up a new MVC project. Which tool or environment would you typically use to create this project?