Spaces:
Sleeping
Sleeping
Update app/services/auth.py
Browse files- app/services/auth.py +5 -1
app/services/auth.py
CHANGED
|
@@ -7,7 +7,11 @@ import jwt
|
|
| 7 |
from app.config import settings
|
| 8 |
|
| 9 |
|
| 10 |
-
pwd_context = CryptContext(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
def hash_password(password: str) -> str:
|
|
|
|
| 7 |
from app.config import settings
|
| 8 |
|
| 9 |
|
| 10 |
+
pwd_context = CryptContext(
|
| 11 |
+
schemes=["bcrypt"],
|
| 12 |
+
deprecated="auto",
|
| 13 |
+
bcrypt__truncate_error=False # Don't raise error on long passwords
|
| 14 |
+
)
|
| 15 |
|
| 16 |
|
| 17 |
def hash_password(password: str) -> str:
|