Improve forget page logic.

This commit is contained in:
Gucheng Wang
2021-11-28 11:09:37 +08:00
parent c46925dbe8
commit 4e92a8273c
2 changed files with 68 additions and 38 deletions

View File

@ -499,7 +499,11 @@ function maskString(s) {
}
}
export function maskEmail(email) {
export function getMaskedPhone(s) {
return s.replace(/(\d{3})\d*(\d{4})/,'$1****$2');
}
export function getMaskedEmail(email) {
if (email === "") return;
const tokens = email.split("@");
let username = tokens[0];