Files
fastapi-users/docs/configuration/full-example.md
François Voron 5267e605f4 Implement password validation mechanism (#632)
* Implement password validation mechanism

* Add invalid password reason

* Always pass user in password validator

* Add password validation documentation
2021-05-17 08:58:23 +02:00

596 B

Full example

Here is a full working example with JWT authentication to help get you started.

!!! warning Notice that SECRET should be changed to a strong passphrase. Insecure passwords may give attackers full access to your database.

SQLAlchemy

{!./src/full_sqlalchemy.py!}

MongoDB

{!./src/full_mongodb.py!}

Tortoise ORM

{!./src/full_tortoise.py!}

Ormar

{!./src/full_ormar.py!}

What now?

You're ready to go! Be sure to check the Usage section to understand how yo work with FastAPI Users.