Upload 28 files
Browse files
astrbot/dashboard/routes/stat.py
CHANGED
|
@@ -62,13 +62,7 @@ class StatRoute(Route):
|
|
| 62 |
return {"hours": hours, "minutes": minutes, "seconds": seconds}
|
| 63 |
|
| 64 |
def is_default_cred(self):
|
| 65 |
-
|
| 66 |
-
password = self.config["dashboard"]["password"]
|
| 67 |
-
return (
|
| 68 |
-
username == "astrbot"
|
| 69 |
-
and password == "77b90590a8945a7d36c963981a307dc9"
|
| 70 |
-
and not DEMO_MODE
|
| 71 |
-
)
|
| 72 |
|
| 73 |
async def get_version(self):
|
| 74 |
need_migration = await check_migration_needed_v4(self.core_lifecycle.db)
|
|
|
|
| 62 |
return {"hours": hours, "minutes": minutes, "seconds": seconds}
|
| 63 |
|
| 64 |
def is_default_cred(self):
|
| 65 |
+
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
async def get_version(self):
|
| 68 |
need_migration = await check_migration_needed_v4(self.core_lifecycle.db)
|