This project demonstrates a user management system that allows users to configure password policies and validate user passwords against those policies. The system is built using ASP.NET MVC with Razor views.
- Password Policy Configuration: Allows administrators to set requirements for password length, lowercase letters, uppercase letters, numeric characters, and special characters.
- User Password Validation: Validates user passwords against the configured password policy.
- Password Policy Configuration Page: Set up the password policy with specific requirements.
- User Registration Page: Validate user passwords based on the configured policy.
- .NET Core SDK
- Visual Studio or any C# compatible IDE
-
Clone the Repository:
git clone https://github.com/Mustafabharmal/Password-Validation.git cd Password-Validation
-
Open the Project: Open the project in Visual Studio or your preferred C# IDE.
-
Build the Project: Build the project to restore dependencies.
- Views/Home/Index.cshtml: Page for configuring password policy.
- Views/Home/Password.cshtml: Page for validating user passwords.
- Controllers/HomeController.cs: Handles HTTP requests and business logic for password policy and validation.
- Models/PasswordPolicy.cs: Represents the password policy configuration.
- Navigate to the password policy configuration page (
/Home/Index
). - Fill in the form with the desired password requirements.
- Minimum Length
- Lowercase Letters
- Uppercase Letters
- Numeric Characters
- Special Characters
- Click "Save" to save the policy.
- Navigate to the password validation page (
/Home/Password
). - Enter a password in the input field.
- Click "Send" to validate the password against the configured policy.
- The result will be displayed below the input field indicating whether the password matches the policy.
This project provides a comprehensive example of implementing a user management system with customizable password policies. It demonstrates the use of ASP.NET MVC for creating dynamic web applications with robust form handling and validation.
Happy Coding! 💻🚀