diff --git a/build_image/dockerhub/v0.9.0/user-dashboard/yarn.lock b/build_image/dockerhub/v0.9.0/user-dashboard/yarn.lock index ac546bfc3..8b5f7557c 100644 --- a/build_image/dockerhub/v0.9.0/user-dashboard/yarn.lock +++ b/build_image/dockerhub/v0.9.0/user-dashboard/yarn.lock @@ -6060,9 +6060,9 @@ xtend@^4.0.0, xtend@^4.0.1: integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== y18n@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" - integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + version "3.2.2" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696" + integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ== yallist@^2.1.2: version "2.1.2" diff --git a/src/dashboard/src/locales/en-US/login.js b/src/dashboard/src/locales/en-US/login.js index adbbf4dae..7017bb73e 100644 --- a/src/dashboard/src/locales/en-US/login.js +++ b/src/dashboard/src/locales/en-US/login.js @@ -12,6 +12,7 @@ export default { 'app.login.login': 'Login', 'app.register.register': 'Register', 'app.register.orgName': 'Organization name', + 'app.register.passwordAgain': 'Enter the password again', 'app.register.success': 'The organization and user register success!', 'app.register.orgName.example': 'For example: org1.cello.com', 'app.register.get-verification-code': 'Get code', diff --git a/src/dashboard/src/locales/zh-CN/login.js b/src/dashboard/src/locales/zh-CN/login.js index b39dac34a..ca5757d02 100644 --- a/src/dashboard/src/locales/zh-CN/login.js +++ b/src/dashboard/src/locales/zh-CN/login.js @@ -12,6 +12,7 @@ export default { 'app.login.login': '登录', 'app.register.register': '注册', 'app.register.orgName': '组织名', + 'app.register.passwordAgain': '再次输入密码', 'app.register.success': '组织和用户注册成功', 'app.register.orgName.example': '例如:org1.cello.com', 'app.register.get-verification-code': '获取验证码', diff --git a/src/dashboard/src/pages/User/Login.js b/src/dashboard/src/pages/User/Login.js index d55e27966..bd73029d8 100644 --- a/src/dashboard/src/pages/User/Login.js +++ b/src/dashboard/src/pages/User/Login.js @@ -78,6 +78,20 @@ class LoginPage extends Component { this.renderMessage( intl.formatMessage({ id: 'app.login.message-invalid-credentials' }) )} + + + + ( + { + validator(role, value){ + if (value !== getFieldValue("password")){ + return Promise.reject(intl.formatMessage({ id: 'validation.password.twice' })); + } + return Promise.resolve(); + } + } + ) + ]} + /> {intl.formatMessage({ id: 'app.register.register',