django-passwordless-login
Login to your Django app with a link sent by email.
Adding it to your django project
- Install django-passwordless-login:
$ pip install django-passwordless-login
- Add
"passwordless_login.apps.PasswordlessLoginConfig"toINSTALLED_APPS:
INSTALLED_APPS += ["passwordless_login.apps.PasswordlessLoginConfig"]
- Write a login template and specify the path in settings, ie:
LOGIN_TEMPLATE_PATH = "app_name/login.html"
- Include
"passwordless_login/login.html"in the template where users will login:
{% include "passwordless_login/login.html" %}
- Include functionality of the login view directly
from passwordless_login.views import login, or include the urls from this app into your app'surlpatterns:
include("passwordless_login.urls")
Customisable Settings include:
LOGIN_MAX_AGE- Adatetime.timedeltaof the duration the login link will last (default 30 minutes)LOGIN_ONE_TIME- If the login link can be used one time only (defaultTrue)LOGIN_CREATE_NEW_USERS- Boolean for whether or not this login form should create new users or just log in existing ones.LOGIN_EMAIL_CONTENT- The content of the email, should include dynamic/format references tolink(required),minutes(equivalent toLOGIN_MAX_AGE),app_name, andcontact_email.APP_NAME- used in the default email contentLOGIN_CONTACT_EMAIL- used in the default email contentLOGIN_FROM_EMAIL- used as the from email if desired to be different from the standard Django DEFAULT_FROM_EMAIL
For development servers, change the EMAIL_BACKEND setting to allow emails to be printed to the console:
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
Metadata
Release files for django-passwordless-login 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-passwordless-login-0.0.3.tar.gz | 6.9 kB | Without provenance | Details for django-passwordless-login-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_passwordless_login-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for django_passwordless_login-0.0.3-py3-none-any.whl |
Total release size: 15.1 kB
Release files / django-passwordless-login-0.0.3.tar.gz
| Download URL | django-passwordless-login-0.0.3.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56797fee6902c8fac62d6974248b78539932d3bc47c2600a58906e37b0cf28c9
|
|
BLAKE2b-256 checksum How to use checksums |
65b7fdc9bfd25c9b025c1e4341e3bf5fe43ed77767b6c1d28226866ba403f589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / django_passwordless_login-0.0.3-py3-none-any.whl
| Download URL | django_passwordless_login-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42d841cdcae2a8f677b42066e8a81f0818d129cf310ff707056b91abc3dbf1fd
|
|
BLAKE2b-256 checksum How to use checksums |
945b8a9d8f2594a608c1a630e3411656fd149e530bfd35b91102957d8a80a953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for django-passwordless-login 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.