Spaces:
Runtime error
Runtime error
logging
Browse files
app/admin/admin_functions.py
CHANGED
|
@@ -61,7 +61,7 @@ def verify_admin_password(submitted_user: str, submitted_password: str) -> bool:
|
|
| 61 |
if submitted_user == "admin":
|
| 62 |
# Retrieve the stored hash from environment variable
|
| 63 |
stored_password_hash = os.getenv("EC_ADMIN_PWD", "").encode('utf-8')
|
| 64 |
-
|
| 65 |
# Directly compare the submitted password with the stored hash
|
| 66 |
return bcrypt.checkpw(submitted_password.encode('utf-8'), stored_password_hash)
|
| 67 |
|
|
|
|
| 61 |
if submitted_user == "admin":
|
| 62 |
# Retrieve the stored hash from environment variable
|
| 63 |
stored_password_hash = os.getenv("EC_ADMIN_PWD", "").encode('utf-8')
|
| 64 |
+
print(stored_password_hash)
|
| 65 |
# Directly compare the submitted password with the stored hash
|
| 66 |
return bcrypt.checkpw(submitted_password.encode('utf-8'), stored_password_hash)
|
| 67 |
|