A simple user control web application built with Flask. This web app allows users to register, login, and perform basic user management tasks. It includes form validation, user input handling, and both GET and POST request handling.
- User Registration
- Form Validation (username, first name, last name, and password rules)
- Error and Success Alerts
- Basic User Login
- Responsive Design using Bootstrap
Make sure you have the following installed:
- Python 3.x
- Flask (
pip install flask
)
- Clone the repository:
git clone https://github.com/sofianeoml/user-control-flask-web-app.git
- Navigate to the project directory:
cd user-control-flask-web-app
- Install the required dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
- Open your web browser and visit:
http://127.0.0.1:5000
- Go to the
/register
page. - Fill in the registration form.
- Make sure to follow the validation rules:
- Username: Must start with a letter, contain only lowercase letters, numbers, or underscores.
- First and Last Name: Must be less than 26 characters.
- Password: Must contain at least one uppercase letter, one number, one special character, and be at least 8 characters long.
- An error alert will show if the form submission fails validation.
- A success alert (green) will display when registration is successful.