This commit is contained in:
@@ -4,7 +4,7 @@ from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
|
||||
class PasswordScoreValidator(object):
|
||||
class PasswordScoreValidator:
|
||||
def _get_score(self, password, user=None):
|
||||
score = 0
|
||||
char_counters = {}
|
||||
@@ -98,7 +98,7 @@ class PasswordScoreValidator(object):
|
||||
return text
|
||||
|
||||
|
||||
class CustomWordlistPasswordValidator(object):
|
||||
class CustomWordlistPasswordValidator:
|
||||
context = 'the Sektion Karlsruhe'
|
||||
words = (
|
||||
u'dav',
|
||||
@@ -132,7 +132,7 @@ class CustomWordlistPasswordValidator(object):
|
||||
return text
|
||||
|
||||
|
||||
class CharacterClassPasswordValidator(object):
|
||||
class CharacterClassPasswordValidator:
|
||||
def _is_enough_lower(self, password):
|
||||
lower = re.sub(r'[^a-z]', '', password)
|
||||
if len(lower) < self.minimum_lower:
|
||||
|
||||
Reference in New Issue
Block a user