mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00

* Update verify.py When using a schema setup as proposed in the documentation like: ReadUser, CreateUser, UpdateUser and BaseUser in the combination with MongoDB / Beanie, the verify() method will not "enforce" the `user_schema` but instead will return the `BaseUser` which will cause serialisation errors as such: ``` pydantic.error_wrappers.ValidationError: 1 validation error for ReadUser response -> id ``` because the mapping between MongoDBs internal `_id` and the Pydantic `id` does not work. * use `from_orm`