MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / validate_password

Method validate_password

fastapi_users/manager.py:485–498  ·  view source on GitHub ↗

Validate a password. *You should overload this method to add your own validation logic.* :param password: The password to validate. :param user: The user associated to this password. :raises InvalidPasswordException: The password is invalid. :return

(
        self, password: str, user: schemas.UC | models.UP
    )

Source from the content-addressed store, hash-verified

483 await self.on_after_delete(user, request)
484
485 async def validate_password(
486 self, password: str, user: schemas.UC | models.UP
487 ) -> None:
488 """
489 Validate a password.
490
491 *You should overload this method to add your own validation logic.*
492
493 :param password: The password to validate.
494 :param user: The user associated to this password.
495 :raises InvalidPasswordException: The password is invalid.
496 :return: None if the password is valid.
497 """
498 return # pragma: no cover
499
500 async def on_after_register(
501 self, user: models.UP, request: Request | None = None

Callers 2

createMethod · 0.95
_updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected