test: update dashboard password resolution and fix mock loggers

This commit is contained in:
LIghtJUNction
2026-04-04 17:00:12 +08:00
parent 8f62ad5b73
commit f429c7203a
3 changed files with 12 additions and 10 deletions

View File

@@ -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