mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 18:47:41 +08:00
test: update dashboard password resolution and fix mock loggers
This commit is contained in:
@@ -74,8 +74,8 @@ def app(core_lifecycle_td: AstrBotCoreLifecycle):
|
||||
|
||||
def _resolve_dashboard_password(core_lifecycle_td: AstrBotCoreLifecycle) -> str:
|
||||
password = core_lifecycle_td.astrbot_config["dashboard"]["password"]
|
||||
if isinstance(password, str) and password.startswith("pbkdf2_sha256$"):
|
||||
return "astrbot"
|
||||
if isinstance(password, str) and ((password.startswith("pbkdf2_sha256$") or password.startswith("$argon2")) or password.startswith("$argon2")):
|
||||
return "astrbot-test-password"
|
||||
return password
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user