From a16bdd0a2106e0b6f2d84eaf8ca2d5ebca341ea8 Mon Sep 17 00:00:00 2001 From: dodo920306 Date: Sat, 14 Jun 2025 19:23:53 +0000 Subject: [PATCH] Provide more information about difference between login page and normal user registration If users register through the login page, they actually create a new organization and assign themselves as the first admin. That's why one can't register with the same org name as others. Thus, this commit provide information about this, telling users to contact their admin if their org has been registered first. Signed-off-by: dodo920306 --- src/dashboard/src/locales/en-US/login.js | 2 ++ src/dashboard/src/locales/zh-CN/login.js | 2 ++ src/dashboard/src/pages/User/Login.js | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/src/dashboard/src/locales/en-US/login.js b/src/dashboard/src/locales/en-US/login.js index 8574f2e62..3a2ed6ec9 100644 --- a/src/dashboard/src/locales/en-US/login.js +++ b/src/dashboard/src/locales/en-US/login.js @@ -12,6 +12,8 @@ export default { 'app.login.login': 'Login', 'app.login.email': 'E-mail', 'app.register.register': 'Register', + 'app.register.info': + 'This registration form is only for setting up a new organization and its first administrator. If your organization already exists, please ask your administrator to create your account.', 'app.register.orgName': 'Organization name', 'app.register.passwordAgain': 'Enter the password again', 'app.register.success': 'The organization and user register success!', diff --git a/src/dashboard/src/locales/zh-CN/login.js b/src/dashboard/src/locales/zh-CN/login.js index 823c4424d..26c7b90d1 100644 --- a/src/dashboard/src/locales/zh-CN/login.js +++ b/src/dashboard/src/locales/zh-CN/login.js @@ -12,6 +12,8 @@ export default { 'app.login.login': '登录', 'app.login.email': 'E-mail', 'app.register.register': '注册', + 'app.register.info': + '此注册功能仅用于创建新组织及其首位管理员账号。如果您的组织已完成注册,请联系组织管理员为您创建个人账号。', 'app.register.orgName': '组织名', 'app.register.passwordAgain': '再次输入密码', 'app.register.success': '组织和用户注册成功', diff --git a/src/dashboard/src/pages/User/Login.js b/src/dashboard/src/pages/User/Login.js index c2aba9718..d71e47c00 100644 --- a/src/dashboard/src/pages/User/Login.js +++ b/src/dashboard/src/pages/User/Login.js @@ -122,6 +122,12 @@ class LoginPage extends Component { {!registering && registerMsg !== '' && this.renderMessage({ type: success ? 'success' : 'error', message: registerMsg })} +