Spaces:
Sleeping
Sleeping
Added authenticatio functionality and updated requirements.txt
Browse files- app/__pycache__/auth.cpython-311.pyc +0 -0
- app/auth.py +1 -1
- requirements.txt +0 -0
app/__pycache__/auth.cpython-311.pyc
CHANGED
|
Binary files a/app/__pycache__/auth.cpython-311.pyc and b/app/__pycache__/auth.cpython-311.pyc differ
|
|
|
app/auth.py
CHANGED
|
@@ -8,7 +8,7 @@ SECRET_KEY = settings.jwt_secret
|
|
| 8 |
ALGORITHM="HS256"
|
| 9 |
ACCESS_TOKEN_EXPIRE_MINUTES = 60
|
| 10 |
|
| 11 |
-
pwd_context = CryptContext(schemes=['
|
| 12 |
|
| 13 |
def hash_password(password: str):
|
| 14 |
return pwd_context.hash(password)
|
|
|
|
| 8 |
ALGORITHM="HS256"
|
| 9 |
ACCESS_TOKEN_EXPIRE_MINUTES = 60
|
| 10 |
|
| 11 |
+
pwd_context = CryptContext(schemes=['argon2'], deprecated="auto")
|
| 12 |
|
| 13 |
def hash_password(password: str):
|
| 14 |
return pwd_context.hash(password)
|
requirements.txt
CHANGED
|
Binary files a/requirements.txt and b/requirements.txt differ
|
|
|