Admin
commited on
Commit
·
f9a6a84
1
Parent(s):
777e7f7
忘记密码
Browse files- src/core/auth.py +1 -0
src/core/auth.py
CHANGED
|
@@ -18,6 +18,7 @@ class AuthManager:
|
|
| 18 |
@staticmethod
|
| 19 |
def verify_admin(username: str, password: str) -> bool:
|
| 20 |
"""Verify admin credentials"""
|
|
|
|
| 21 |
# Compare with current config (which may be from database or config file)
|
| 22 |
return username == config.admin_username and password == config.admin_password
|
| 23 |
|
|
|
|
| 18 |
@staticmethod
|
| 19 |
def verify_admin(username: str, password: str) -> bool:
|
| 20 |
"""Verify admin credentials"""
|
| 21 |
+
print(config.admin_username+","+config.admin_password)
|
| 22 |
# Compare with current config (which may be from database or config file)
|
| 23 |
return username == config.admin_username and password == config.admin_password
|
| 24 |
|