Update Account
This commit is contained in:
@@ -389,5 +389,20 @@ Vue.use({
|
||||
message: '',
|
||||
};
|
||||
};
|
||||
|
||||
Vue.prototype.$maskEmailAdvanced = (email) => {
|
||||
if (!email) return '';
|
||||
|
||||
const [name, domain] = email.split('@');
|
||||
if (!name || !domain) return email;
|
||||
|
||||
const [domainName, ext] = domain.split('.');
|
||||
|
||||
const maskedName = name.slice(0, 2) + '*'.repeat(Math.max(name.length - 2, 1));
|
||||
|
||||
const maskedDomain = domainName[0] + '*'.repeat(Math.max(domainName.length - 1, 1));
|
||||
|
||||
return `${maskedName}@${maskedDomain}.${ext}`;
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ const apis = [
|
||||
params: {
|
||||
sort: '-id',
|
||||
values:
|
||||
'id,auth_method__code,blocked,auth_status__code,username,register_method__code,fullname,type,type__code,type__name,create_time,create_time__date,auth_method,auth_status,register_method,create_time,update_time',
|
||||
'id,auth_method__code,blocked,auth_status__code,username,email,password,register_method__code,fullname,type,type__code,type__name,create_time,create_time__date,auth_method,auth_status,register_method,create_time,update_time',
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user