def set_password_validator(self, func):
    'Sets the function used to perform password validation.\n\n        :param func:\n            A function that receives ``(store, auth_id, password)``\n            and returns a user dict or None.\n        '
    self.validate_password = func.__get__(self, self.__class__)
Sets the function used to perform password validation.

:param func:
    A function that receives ``(store, auth_id, password)``
    and returns a user dict or None.
def set_password_validator(self, func):
    'Sets the function used to perform password validation.\n\n        :param func:\n            A function that receives ``(store, auth_id, password)``\n            and returns a user dict or None.\n        '
    self.validate_password = func.__get__(self, self.__class__)