Flask Site that uses user-authentication and disallows unregistered users from accessing a secret file
Features:
- Allows users to register and login to accounts
- User info stored in database
- Passwords are encrypted with sha256 and a salt
- Uses LoginManager for authentication
- Uses Flask flash to give user info on why register/login failed
- Secret file that can only be accessed by logged-in users
How to run:
- Download repository
- Open downloaded repository with a command line interface
- run
pip install flask
- run
pip install Werkzeug
- run
pip install Flask-SQLAlchemy
- run
pip install flask_login
- run
python main.py
- Go to
127.0.0.1:5000/
to view site
Home Page:
Incorrect Password Prompt on Login-in Page:
Logged-In Page:
Secret File: