Override django-registration-redux to log-in by e-mail. This package provides:
Log-in with e-mail or username
User-convenient messages for various cases in login and password reset form
Send password reset e-mail even for users without password
Includes phishing-safe next_url mechanism
Security note: For better user experience the password reset form informs users if the e-mail doesn’t exist in the system. This lowers security, because attacker can query the system whether the account exists or not. The risk is lowered by using captcha on the form, but still you should evaluate if this is secure enough for your system.
Documentation
The full documentation is at https://django-registration-with-email.readthedocs.io.
Quickstart
Install Django registration with email:
pip install django-registration-redux pip install django-registration-with-email
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'registration',
'django_registration_with_email',
'captcha',
...
)
Add Django registration with email’s URL patterns:
urlpatterns = [
...
path('accounts/', include('django_registration_with_email.urls')),
path('accounts/', include('registration.backends.default.urls')),
...
]
Set email as unique=True in your User model:
class User(TimeStampedModel, AbstractUser):
email = models.EmailField(
verbose_name='email address',
max_length=254,
blank=True,
null=True,
unique=True,
)
Features
TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Development commands
pip install -r requirements_dev.txt invoke -l
Credits
Tools used in rendering this package:
History
0.2.0 (2021-04-05)
Use django-registration-redux
0.1.0 (2021-03-01)
First release on PyPI.
Metadata
Release files for django-registration-with-email 0.3.1
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-registration-with-email-0.3.1.tar.gz | 19.0 kB | Without provenance | Details for django-registration-with-email-0.3.1.tar.gz |
Release files / django-registration-with-email-0.3.1.tar.gz
| Download URL | django-registration-with-email-0.3.1.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
820523817eb48c73a79b6cfc3360b26d6eb5afe81dfc1170b3920c9005bd268c
|
|
BLAKE2b-256 checksum How to use checksums |
cfec22027d52fa053177d313260e2e66332dadde9f28bdf821f174f6ff874820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
|
Security for django-registration-with-email 0.3.1
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.