mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-10-30 08:57:33 +08:00
Drop Pydantic v1 support
This commit is contained in:
@ -68,7 +68,7 @@ def get_verify_router(
|
||||
):
|
||||
try:
|
||||
user = await user_manager.verify(token, request)
|
||||
return schemas.model_validate(user_schema, user)
|
||||
return user_schema.model_validate(user)
|
||||
except (exceptions.InvalidVerifyToken, exceptions.UserNotExists):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
|
||||
Reference in New Issue
Block a user