Skip to content

Commit

Permalink
Update password-validation.md (fastapi-users#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh authored Aug 12, 2021
1 parent 6374cf4 commit a8f0a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration/password-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a8f0a31

Please sign in to comment.