mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
Add maskEmail(), fix Safari bug.
This commit is contained in:
@ -298,9 +298,7 @@ class ForgetPage extends React.Component {
|
||||
{this.state.phone.replace(/(\d{3})\d*(\d{4})/,'$1****$2')}
|
||||
</Option>
|
||||
<Option key={2} value={this.state.email}>
|
||||
{this.state.email.split("@")[0].length>2?
|
||||
this.state.email.replace(/(?<=.)[^@]+(?=.@)/, "*****"):
|
||||
this.state.email.replace(/(\w?@)/, "*@")}
|
||||
{Setting.maskEmail(this.state.email)}
|
||||
</Option>
|
||||
</Select>
|
||||
}
|
||||
|
Reference in New Issue
Block a user