From 4199a88e4fedfaac4acf45a52547d0ac63f7107a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 23 Sep 2026 17:01:13 +0800 Subject: [PATCH] fix: clear inherited admin password in smoke test --- scripts/smoke-real-model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/smoke-real-model.py b/scripts/smoke-real-model.py index 4fc0632..b7f811e 100644 --- a/scripts/smoke-real-model.py +++ b/scripts/smoke-real-model.py @@ -12,6 +12,7 @@ with TemporaryDirectory() as temporary: password = "smoke-" + secrets.token_urlsafe(24) os.environ["LAYA_ADMIN_USERNAME"] = "smoke-admin" + os.environ.pop("LAYA_ADMIN_PASSWORD", None) os.environ["LAYA_ADMIN_PASSWORD_HASH"] = PasswordHasher().hash(password) os.environ["LAYA_PUBLIC_ORIGIN"] = "http://testserver" os.environ["LAYA_ALLOW_INSECURE_LOCAL"] = "1"