Spaces:
Sleeping
Sleeping
close parenthese
Browse files- users_management.py +1 -1
users_management.py
CHANGED
@@ -82,7 +82,7 @@ def update_json(user, prompt, keywords):
|
|
82 |
|
83 |
def auth_user(username, password):
|
84 |
print('INSIDE')
|
85 |
-
print(f"HASHED = {sha256(password.encode()).hexdigest() == users[username]['hashed_password']}"
|
86 |
if username in users and sha256(password.encode()).hexdigest() == users[username]['hashed_password']:
|
87 |
#mistral_api_key = os.environ[username]
|
88 |
user = users.get(username)
|
|
|
82 |
|
83 |
def auth_user(username, password):
|
84 |
print('INSIDE')
|
85 |
+
print(f"HASHED = {sha256(password.encode()).hexdigest() == users[username]['hashed_password']}")
|
86 |
if username in users and sha256(password.encode()).hexdigest() == users[username]['hashed_password']:
|
87 |
#mistral_api_key = os.environ[username]
|
88 |
user = users.get(username)
|