class documentation

class UserAttributeSimilarityValidator:

View In Hierarchy

Validate whether the password is sufficiently different from the user's attributes.

If no specific attributes are provided, look at a sensible list of defaults. Attributes that don't exist are ignored. Comparison is made to not only the full attribute value, but also its components, so that, for example, a password is validated against either part of an email address, as well as the full address.

Constant DEFAULT​_USER​_ATTRIBUTES Undocumented
Method __init__ Undocumented
Method get​_help​_text Undocumented
Method validate Undocumented
Instance Variable max​_similarity Undocumented
Instance Variable user​_attributes Undocumented
DEFAULT_USER_ATTRIBUTES: tuple[str, ...] =

Undocumented

Value
('username', 'first_name', 'last_name', 'email')
def __init__(self, user_attributes=DEFAULT_USER_ATTRIBUTES, max_similarity=0.7):

Undocumented

def get_help_text(self):

Undocumented

def validate(self, password, user=None):

Undocumented

max_similarity =

Undocumented

user_attributes =

Undocumented