Skip to content

flask_login demo that stores user credentials on the filesystem

Notifications You must be signed in to change notification settings

matheusfillipe/flask_login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flaks login demo

My simple demo of how to use flask_login module without the need of a database or anything fancy. I also tried to implement an ip based limiter on the login route to try to avoid bruteforce based attacks.

Usage

# install dependencies
pip install flask flask-login Flask-Limiter

# Add users
./users.py

# run
flask run
# or
python3 main.py

The users folder will be created where each user get his file on the format: {username}.hash which containing his hashed password.