adding warning of insecure SECRET (#232)

This commit is contained in:
Eric Lopes
2020-06-15 21:41:15 +08:00
committed by GitHub
parent 638ffb70d0
commit dc9f4c75ce
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
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.
``` py tab="SQLAlchemy"
{!./src/full_sqlalchemy.py!}
```

View File

@@ -162,6 +162,10 @@ app.include_router(google_oauth_router, prefix="/auth/google", tags=["auth"])
### Full example
!!! warning
Notice that **SECRET** should be changed to a strong passphrase.
Insecure passwords may give attackers full access to your database.
``` py tab="SQLAlchemy"
{!./src/oauth_full_sqlalchemy.py!}
```