mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Merge pull request #136 from sh1luo/fix-empty-email-bug
fix: empty email bug
This commit is contained in:
commit
98e0c1aa85
@ -437,6 +437,7 @@ function maskString(s) {
|
||||
}
|
||||
|
||||
export function maskEmail(email) {
|
||||
if (email === "") return;
|
||||
const tokens = email.split("@");
|
||||
let username = tokens[0];
|
||||
username = maskString(username);
|
||||
|
Loading…
x
Reference in New Issue
Block a user