From c7fb40f9ec32b5cd763cd4acb42b22555e1f7aa4 Mon Sep 17 00:00:00 2001 From: Menci Date: Tue, 28 Jul 2026 22:31:21 +0800 Subject: [PATCH] fix(web): keep the dev passwordless shortcut off the login page The sign-in hint told every visitor that an instance without ADMIN_KEY accepts a blank password. That is a property of the deployment, not guidance a login form should publish. State only the seed-admin path: a blank username with ADMIN_KEY as the password. --- apps/web/src/i18n/locales/en.ts | 2 +- apps/web/src/i18n/locales/zh-Hans.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/i18n/locales/en.ts b/apps/web/src/i18n/locales/en.ts index 3a001a573..a2c772b62 100644 --- a/apps/web/src/i18n/locales/en.ts +++ b/apps/web/src/i18n/locales/en.ts @@ -19,7 +19,7 @@ const en = { }, auth: { adminKeyHint: - 'Leave the username blank for the default administrator. In local development without ADMIN_KEY, leave the password blank too; otherwise enter ADMIN_KEY.', + 'Sign in as the default administrator with a blank username and ADMIN_KEY as the password.', login: { title: 'Sign in', subtitle: 'Sign in to Floway.', diff --git a/apps/web/src/i18n/locales/zh-Hans.ts b/apps/web/src/i18n/locales/zh-Hans.ts index 1899b5aba..5df07dcf8 100644 --- a/apps/web/src/i18n/locales/zh-Hans.ts +++ b/apps/web/src/i18n/locales/zh-Hans.ts @@ -19,7 +19,7 @@ const zhHansCN = { }, auth: { adminKeyHint: - '用户名留空可登录默认管理员。本地开发未设置 ADMIN_KEY 时密码也可留空,否则请输入 ADMIN_KEY。', + '使用空用户名和 ADMIN_KEY 作为密码来登录默认管理员。', login: { title: '登录', subtitle: '登录到 Floway。',