mongodb-labs / full-stack-fastapi-mongodb

Full stack, modern web application generator. Using FastAPI, MongoDB as database, Docker, automatic HTTPS and more.
MIT License
510 stars 86 forks source link

TypeError: CRUDUser.is_active() missing 1 required positional argument: 'user' #36

Closed thoth2357 closed 7 months ago

thoth2357 commented 7 months ago

Error:

TypeError: CRUDUser.is_active() missing 1 required positional argument: 'user'

How To Reproduce

The Error occurs when you try to login with the /oauth route using either the admin credentials or normal user credentials, The static method to check user Active status fails with missing positional argument user.

thoth2357 commented 7 months ago

Issue fixed with PR #37