A simple Django app to authenticate users via email (or username).
- Add the package to the project in the usual way according to your project toolset (pip, poetry, pyenv, uv, etc.).
- Add the following to your
INSTALLED_APPS
setting:
INSTALLED_APPS = [
...
'email_auth',
...
]
- Add the
AUTHENTICATION_BACKENDS
setting:
AUTHENTICATION_BACKENDS = [
'django_email_auth.backend.EmailAuthBackend',
]
You can now use either your email OR username to log in.