def get_user_by_password(self, auth_id, password, remember=False, save_session=True, silent=False):
    'Returns a user based on password credentials.\n\n        :param auth_id:\n            Authentication id.\n        :param password:\n            User password.\n        :param remember:\n            If True, saves permanent sessions.\n        :param save_session:\n            If True, saves the user in the session if authentication succeeds.\n        :param silent:\n            If True, raises an exception if auth_id or password are invalid.\n        :returns:\n            A user dict or None.\n        :raises:\n            ``InvalidAuthIdError`` or ``InvalidPasswordError``.\n        '
    if save_session:
        self.unset_session()
    self._user = self.store.validate_password(auth_id, password, silent=silent)
    if (not self._user):
        self._user = _anon
    elif save_session:
        self.set_session(self._user, remember=remember)
    return self._user_or_none()
Returns a user based on password credentials.

:param auth_id:
    Authentication id.
:param password:
    User password.
:param remember:
    If True, saves permanent sessions.
:param save_session:
    If True, saves the user in the session if authentication succeeds.
:param silent:
    If True, raises an exception if auth_id or password are invalid.
:returns:
    A user dict or None.
:raises:
    ``InvalidAuthIdError`` or ``InvalidPasswordError``.
def get_user_by_password(self, auth_id, password, remember=False, save_session=True, silent=False):
    'Returns a user based on password credentials.\n\n        :param auth_id:\n            Authentication id.\n        :param password:\n            User password.\n        :param remember:\n            If True, saves permanent sessions.\n        :param save_session:\n            If True, saves the user in the session if authentication succeeds.\n        :param silent:\n            If True, raises an exception if auth_id or password are invalid.\n        :returns:\n            A user dict or None.\n        :raises:\n            ``InvalidAuthIdError`` or ``InvalidPasswordError``.\n        '
    if save_session:
        self.unset_session()
    self._user = self.store.validate_password(auth_id, password, silent=silent)
    if (not self._user):
        self._user = _anon
    elif save_session:
        self.set_session(self._user, remember=remember)
    return self._user_or_none()