Simple mysql authentication with flask
apt install python-flask python-mysqldb python-bcrypt
mysql -u USERNAME -p DATABASENAME < db.sql
example:
mysql -u root -p flask < db.sql
Edit the config file and save it as 'config.conf'
python app.py
Default username/password is admin/admin
- Add more security
- Add editable passwords for the user / admin