Skip to content
Snippets Groups Projects
Unverified Commit c599b797 authored by Saurabh Kumar's avatar Saurabh Kumar Committed by GitHub
Browse files

Replace django-pwned-passwords with pwned-passwords-django (#3826)

Fixes #3819
parent c39d85ba
No related branches found
No related tags found
1 merge request!89Upgrade to 5.10.0
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Django settings for hypha project. Django settings for hypha project.
""" """
from django.utils.translation import gettext_lazy as _
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
"scout_apm.django", "scout_apm.django",
...@@ -59,7 +61,6 @@ INSTALLED_APPS = [ ...@@ -59,7 +61,6 @@ INSTALLED_APPS = [
"addressfield", "addressfield",
"django_nh3", "django_nh3",
"django_fsm", "django_fsm",
"django_pwned_passwords",
"django_slack", "django_slack",
"django_otp", "django_otp",
"django_otp.plugins.otp_totp", "django_otp.plugins.otp_totp",
...@@ -166,7 +167,15 @@ AUTH_PASSWORD_VALIDATORS = [ ...@@ -166,7 +167,15 @@ AUTH_PASSWORD_VALIDATORS = [
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
}, },
{ {
"NAME": "django_pwned_passwords.password_validation.PWNEDPasswordValidator", "NAME": "pwned_passwords_django.validators.PwnedPasswordsValidator",
"OPTIONS": {
"error_message": _(
"This password has previously appeared in a data breach and should not be used. Please choose a different password."
),
"help_message": _(
"Your password must not have been detected in a major security breach."
),
},
}, },
] ]
......
...@@ -22,8 +22,6 @@ django-heroku==0.3.1 ...@@ -22,8 +22,6 @@ django-heroku==0.3.1
django-hijack==3.4.5 django-hijack==3.4.5
django-htmx==1.17.3 django-htmx==1.17.3
django-pagedown==2.2.1 django-pagedown==2.2.1
# django-pwned-passwords==4.1.0
https://github.com/slinkymanbyday/django-pwned-passwords/archive/58c7b832df7360a21fd8edeaaf9f897c7517baf1.zip
django-ratelimit==4.1.0 django-ratelimit==4.1.0
django-referrer-policy==1.0 django-referrer-policy==1.0
django-select2==8.1.2 django-select2==8.1.2
...@@ -49,6 +47,7 @@ more-itertools==10.2.0 ...@@ -49,6 +47,7 @@ more-itertools==10.2.0
phonenumberslite==8.13.32 phonenumberslite==8.13.32
Pillow==10.2.0 Pillow==10.2.0
psycopg[binary]==3.1.18 psycopg[binary]==3.1.18
pwned-passwords-django==2.1
qrcode==7.4.2 qrcode==7.4.2
reportlab==4.0.9 reportlab==4.0.9
social_auth_app_django==5.4.0 social_auth_app_django==5.4.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment