From 26895e0c57dd201e700a47ccafd4fb5142c93e72 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 18 Aug 2020 16:53:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=97=B6=E8=BF=9B=E8=A1=8C=E4=BA=8C=E6=AC=A1=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/personal/PersonSetting.vue | 16 ++++++++++++++++ frontend/src/i18n/en-US.js | 2 ++ frontend/src/i18n/zh-CN.js | 2 ++ frontend/src/i18n/zh-TW.js | 2 ++ 4 files changed, 22 insertions(+) diff --git a/frontend/src/business/components/settings/personal/PersonSetting.vue b/frontend/src/business/components/settings/personal/PersonSetting.vue index 13d32d33bd..038e56af30 100644 --- a/frontend/src/business/components/settings/personal/PersonSetting.vue +++ b/frontend/src/business/components/settings/personal/PersonSetting.vue @@ -66,6 +66,9 @@ + + + { if (valid) { + if (this.ruleForm.newpassword !== this.ruleForm.repeatPassword) { + this.$warning(this.$t('member.inconsistent_passwords')); + return; + } this.result = this.$post(this.updatePasswordPath, this.ruleForm, response => { this.$success(this.$t('commons.modify_success')); this.editPasswordVisible = false; diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 8ee3794d6a..b6a45bf8ce 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -219,6 +219,8 @@ export default { password_format_is_incorrect: 'Valid password: 8-30 digits, English upper and lower case letters + numbers + special characters (optional)', old_password: 'Old Password', new_password: 'New Password', + repeat_password: 'Repeat', + inconsistent_passwords: 'The two passwords entered are inconsistent', remove_member: 'Are you sure you want to remove this member', input_id_or_email: 'Please enter user ID, or user Email', no_such_user: 'Without this user information, please enter the correct user ID or user Email!', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 4e947594c5..f24d0b7b19 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -219,6 +219,8 @@ export default { password_format_is_incorrect: '有效密码:8-30位,英文大小写字母+数字+特殊字符(可选)', old_password: '旧密码', new_password: '新密码', + repeat_password: '确认密码', + inconsistent_passwords: '两次输入的密码不一致', remove_member: '确定要移除该成员吗', input_id_or_email: '请输入用户 ID, 或者 用户邮箱', no_such_user: '无此用户信息, 请输入正确的用户 ID 或者 用户邮箱!', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 73523d27eb..7d45f9612d 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -217,6 +217,8 @@ export default { password_format_is_incorrect: '有效密碼:8-30 位,英文大小寫字母+數位+特殊字元(可選)', old_password: '舊密碼', new_password: '新密碼', + repeat_password: '確認密碼', + inconsistent_passwords: '兩次輸入的密碼不一致', remove_member: '確定要移除該成員嗎', input_id_or_email: '請輸入用戶 ID, 或者 用戶郵箱', no_such_user: '無此用戶信息, 請輸入正確的用戶 ID 或者 用戶郵箱!',