From 329fa26ee0290ea90d996412b18a1d0c4b5e3e4d Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 15 May 2023 15:29:00 -0300 Subject: [PATCH] chore: Remove abandoned django-password-strength package --- ietf/settings.py | 2 -- .../fix-django-password-strength-kwargs.patch | 36 ------------------- requirements.txt | 1 - 3 files changed, 39 deletions(-) delete mode 100644 patch/fix-django-password-strength-kwargs.patch diff --git a/ietf/settings.py b/ietf/settings.py index 4e145e16d..e0c6820a8 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -433,7 +433,6 @@ INSTALLED_APPS = [ 'django_celery_beat', 'corsheaders', 'django_markup', - 'django_password_strength', 'oidc_provider', 'simple_history', 'tastypie', @@ -1124,7 +1123,6 @@ CHECKS_LIBRARY_PATCHES_TO_APPLY = [ 'patch/change-oidc-provider-field-sizes-228.patch', 'patch/fix-oidc-access-token-post.patch', 'patch/fix-jwkest-jwt-logging.patch', - 'patch/fix-django-password-strength-kwargs.patch', 'patch/django-cookie-delete-with-all-settings.patch', 'patch/tastypie-django22-fielderror-response.patch', ] diff --git a/patch/fix-django-password-strength-kwargs.patch b/patch/fix-django-password-strength-kwargs.patch deleted file mode 100644 index 9f24ce932..000000000 --- a/patch/fix-django-password-strength-kwargs.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- django_password_strength/widgets.py.orig 2020-06-24 16:07:28.479533134 +0200 -+++ django_password_strength/widgets.py 2020-06-24 16:08:09.540714290 +0200 -@@ -8,7 +8,7 @@ - Form widget to show the user how strong his/her password is. - """ - -- def render(self, name, value, attrs=None): -+ def render(self, name, value, **kwargs): - strength_markup = """ -
-
-@@ -30,7 +30,7 @@ - except KeyError: - self.attrs['class'] = 'password_strength' - -- return mark_safe( super(PasswordInput, self).render(name, value, attrs) + strength_markup ) -+ return mark_safe( super(PasswordInput, self).render(name, value, **kwargs) + strength_markup ) - - class Media: - js = ( -@@ -48,7 +48,7 @@ - super(PasswordConfirmationInput, self).__init__(attrs, render_value) - self.confirm_with=confirm_with - -- def render(self, name, value, attrs=None): -+ def render(self, name, value, **kwargs): - if self.confirm_with: - self.attrs['data-confirm-with'] = 'id_%s' % self.confirm_with - -@@ -68,4 +68,4 @@ - except KeyError: - self.attrs['class'] = 'password_confirmation' - -- return mark_safe( super(PasswordInput, self).render(name, value, attrs) + confirmation_markup ) -+ return mark_safe( super(PasswordInput, self).render(name, value, **kwargs) + confirmation_markup ) - diff --git a/requirements.txt b/requirements.txt index 0b97607f6..48491aa2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,6 @@ django-cors-headers>=3.11.0 django-debug-toolbar>=3.2.4 django-markup>=1.5 # Limited use - need to reconcile against direct use of markdown django-oidc-provider>=0.8 # 0.8 dropped Django 2 support -django-password-strength>=1.2.1 django-referrer-policy>=1.0 django-simple-history>=3.0.0 django-stubs>=4.2.0 # The django-stubs version used determines the the mypy version indicated below