def get_user_by_auth_password(self, auth_id, password, silent=False):
    'Returns a user dict based on auth_id and password.\n\n        :param auth_id:\n            Authentication id.\n        :param password:\n            User password.\n        :param silent:\n            If True, raises an exception if auth_id or password are invalid.\n        :returns:\n            A dictionary with user data.\n        :raises:\n            ``InvalidAuthIdError`` or ``InvalidPasswordError``.\n        '
    try:
        user = self.user_model.get_by_auth_password(auth_id, password)
        return self.user_to_dict(user)
    except (InvalidAuthIdError, InvalidPasswordError):
        if (not silent):
            raise
        return None
Returns a user dict based on auth_id and password.

:param auth_id:
    Authentication id.
:param password:
    User password.
:param silent:
    If True, raises an exception if auth_id or password are invalid.
:returns:
    A dictionary with user data.
:raises:
    ``InvalidAuthIdError`` or ``InvalidPasswordError``.
def get_user_by_auth_password(self, auth_id, password, silent=False):
    'Returns a user dict based on auth_id and password.\n\n        :param auth_id:\n            Authentication id.\n        :param password:\n            User password.\n        :param silent:\n            If True, raises an exception if auth_id or password are invalid.\n        :returns:\n            A dictionary with user data.\n        :raises:\n            ``InvalidAuthIdError`` or ``InvalidPasswordError``.\n        '
    try:
        user = self.user_model.get_by_auth_password(auth_id, password)
        return self.user_to_dict(user)
    except (InvalidAuthIdError, InvalidPasswordError):
        if (not silent):
            raise
        return None