vip11017 commited on
Commit
d59647e
·
1 Parent(s): 9953dc0

Added authenticatio functionality and updated requirements.txt

Browse files
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=['bcrypt'], deprecated="auto")
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