Using Django Password Validators
See original GitHub issueI see Djoser has it’s own method of providing password validation which does not use the Django AUTH_PASSWORD_VALIDATORS
and will not accept identical arguments. Is there a reason for this? Wouldn’t it be simpler to work directly with what is provided by Django auth (https://docs.djangoproject.com/en/1.9/topics/auth/passwords/) ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Django Shorts — Password validators | by Nuno Bispo - Medium
It's quite easy to write a custom password validator to use with Django. All is needed is to create a class that implements...
Read more >django-password-validators - PyPI
Validator checks if the password was once used by a particular user. If the password is used, then an exception is thrown, of...
Read more >How to Create Custom Password Validators in Django
If you have more specific needs, you can create your own validators. To do so, simply create your own classes based on object...
Read more >Django - Adding password validations in a ModelForm
from django.contrib.auth.models import User ; from django import forms ; class user_form(forms.ModelForm): password = forms.CharField(widget = ...
Read more >django-password-validators - Python package - Snyk
Additional libraries for validating passwords in Django 2.2.25 or later. django-password-validators requires Django 2.2.25 or greater. The application works ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After discussing the matter internally with @haxoza and @michalbon we believe that https://github.com/orcasgit/django-password-validation will be a solution for for Django 1.8 users, so I suppose that we might as well get rid of
PASSWORD_VALIDATORS
from Djoser settings for 0.7.0 and we will simply use Django Password Validation as we should.You can do this in your settings.py
Then also in settings.py for DJOSER Settings:
works for me!