A Simple Authentication System Project with basic user functionality in Python Flask with SQLAlchemy.
- Create account
- Log In via (Username & Email address)
- Logout
- Account activation via verification link
- Reset password via reset link
- Reset new email via confirmation link
- Update profile details & add profile image
- Change password after login
git clone https://github.com/anuraagnagar/flask-user-authentication.git
cd flask-user-authentication
python3 -m venv venv
On Windows
venv\scripts\activate
On MacOS/Linux
source venv/bin/activate
To run this project locally, you will need to change .env.example
file to .env
on base directory
and set the environment variables.
pip install -r requirements.txt
Note: Before initializing the database, run the flask run
command in your terminal to ensure that
the application is set up properly. This allows you to access the flask db
command for database migrations.
Initialize the database migration directory.
flask db init
Run migrate command.
flask db migrate -m "initial_migration"
Upgrade the database for latest migration.
flask db upgrade
Once the database is set up, you can run the Flask server to start your application.
flask run
To access this application open http://localhost:5000
in your web browser.
Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.
For more information checkout
By contributing to this project, you agree that your contributions will be licensed under the .