Class UserAttributeSimilarityValidator
 Validate whether the password is sufficiently different from the user's attributes. 
Declaration
class UserAttributeSimilarityValidator
source linkDocumentation
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.
Methods
- ▷ def __init__(self, user_attributes=DEFAULT_USER_ATTRIBUTES, max_similarity=0.7)  
- ▷ def validate(self, password, user=None)