mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 19:00:53 +08:00
fix: 用户邮箱信息增加脱敏处理
This commit is contained in:
@@ -77,7 +77,6 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { getCurrentInstance, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import {
|
||||
UserSocialBindRecord,
|
||||
listSocial,
|
||||
@@ -86,7 +85,6 @@
|
||||
import { socialAuth } from '@/api/auth';
|
||||
|
||||
const { proxy } = getCurrentInstance() as any;
|
||||
const { t } = useI18n();
|
||||
const socialBinds = ref<UserSocialBindRecord[]>([]);
|
||||
const giteeSocial = ref<UserSocialBindRecord>();
|
||||
const githubSocial = ref<UserSocialBindRecord>();
|
||||
|
@@ -148,19 +148,6 @@
|
||||
'userCenter.securitySettings.updateEmail.form.error.match.newEmail'
|
||||
),
|
||||
},
|
||||
{
|
||||
validator: (value, callback) => {
|
||||
if (value === userStore.email) {
|
||||
callback(
|
||||
t(
|
||||
'userCenter.securitySettings.updateEmail.form.error.validator.newEmail'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
captcha: [
|
||||
{
|
||||
|
@@ -102,8 +102,6 @@ export default {
|
||||
'Please enter new email',
|
||||
'userCenter.securitySettings.updateEmail.form.error.match.newEmail':
|
||||
'Please enter the correct email',
|
||||
'userCenter.securitySettings.updateEmail.form.error.validator.newEmail':
|
||||
'New email cannot be the same as the old email',
|
||||
'userCenter.securitySettings.updateEmail.form.error.required.captcha':
|
||||
'Please enter email captcha',
|
||||
'userCenter.securitySettings.updateEmail.form.error.required.currentPassword':
|
||||
|
@@ -97,8 +97,6 @@ export default {
|
||||
'请输入新邮箱',
|
||||
'userCenter.securitySettings.updateEmail.form.error.match.newEmail':
|
||||
'请输入正确的邮箱',
|
||||
'userCenter.securitySettings.updateEmail.form.error.validator.newEmail':
|
||||
'新邮箱不能与当前邮箱相同',
|
||||
'userCenter.securitySettings.updateEmail.form.error.required.captcha':
|
||||
'请输入邮箱验证码',
|
||||
'userCenter.securitySettings.updateEmail.form.error.required.currentPassword':
|
||||
|
Reference in New Issue
Block a user