mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Update password-validation.md (#680)
This commit is contained in:
@@ -25,7 +25,7 @@ from fastapi_users import FastAPIUsers, InvalidPasswordException
|
||||
|
||||
async def validate_password(
|
||||
password: str,
|
||||
user: Union[UserRegister, User]],
|
||||
user: Union[UserCreate, User],
|
||||
) -> None:
|
||||
if len(password) < 8:
|
||||
raise InvalidPasswordException(
|
||||
|
||||
Reference in New Issue
Block a user