|
|
|
@@ -52,7 +52,7 @@ |
|
|
|
<div class="inline required field"> |
|
|
|
<label>{{.i18n.Tr "auth.new_email_address"}}</label> |
|
|
|
<input type="email" style="width: 80%;" id="email" name="NewEmail" maxlength="255" value="{{.SignedUser.Email}}" |
|
|
|
pattern="([a-zA-Z0-9_-])+@(163\.com|126\.com|qq\.com|yahoo\.com|sina\.com|sina\.cn|outlook\.com|pcl\.ac\.cn|foxmail\.com|ict\.ac\.cn|21cn\.com|yeah\.net|139\.com)"> |
|
|
|
pattern="([a-zA-Z0-9_-])+@(163\.com|126\.com|qq\.com|yahoo\.com|sina\.com|sina\.cn|outlook\.com|pcl\.ac\.cn|foxmail\.com|ict\.ac\.cn|21cn\.com|yeah\.net|139\.com)" required> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="center actions"> |
|
|
|
@@ -72,7 +72,7 @@ |
|
|
|
$('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) |
|
|
|
let emailInput=document.getElementById("email"); |
|
|
|
emailInput.oninvalid = function () { |
|
|
|
this.setCustomValidity('{{.i18n.Tr "auth.email_domain_blacklisted"}}') |
|
|
|
this.setCustomValidity('{{.i18n.Tr "auth.email_domain_blacklisted_change"}}') |
|
|
|
} |
|
|
|
emailInput.oninput = function(){ |
|
|
|
this.setCustomValidity('') |
|
|
|
|