Batteries-included authentication flow in Dash.
This has landing pages and functions to run the entire authentication flow:
- home
- login
- logout
- register
- forgot password
- change password
This uses flask-login on the backend, using some code from the very useful dash-flask-login. Data is held in users.db.
pip install pipenv
pipenv install --ignore-pipfile
pipenv shell
python create_tables.py # [email protected] / test
python app.pyNotes:
- this uses MailJet as the email API. You need a free MailJet API key
- your send-from email and API key/secret need to be entered in
config/keys.py - if you want to use something else, change the
send_password_keyfunction inutilities/auth.py - add pages in
pages/. - the app's basic layout and routing happens in
app.py - app is created and auth is built in
server.py - config is in
utilities/config.txtandutilities/config.py
