chore: Remove abandoned django-password-strength package
This commit is contained in:
parent
0319f35e0f
commit
329fa26ee0
|
@ -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',
|
||||
]
|
||||
|
|
|
@ -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 = """
|
||||
<div style="margin-top: 10px;">
|
||||
<div class="progress" style="margin-bottom: 10px;">
|
||||
@@ -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 )
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue