Update Account

This commit is contained in:
ThienPhamVan
2026-03-30 14:09:41 +07:00
parent e7e8f0b38a
commit e1b9d9c15d
11 changed files with 1029 additions and 280 deletions

View File

@@ -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}`;
};
},
});

View File

@@ -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',
},
},