mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Merge branch 'ent-12525-validacion-email-en-registro-consola' into 'develop'
Ent 12525 Validacion email en registro consola See merge request artica/pandorafms!6922
This commit is contained in:
commit
b154abc7fa
@ -132,6 +132,15 @@ $product_name = get_product_name(); ?>
|
||||
<script type="text/javascript">
|
||||
var clientMode = '<?php echo $mode; ?>';
|
||||
var ajaxPage = '<?php echo $ajaxPage; ?>';
|
||||
|
||||
function notDefaultEmails(email) {
|
||||
if (email.toLowerCase() === 'pandora@pandorafms.com' || email.toLowerCase() === 'admin@example.com') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#registration_wizard").dialog({
|
||||
resizable: true,
|
||||
@ -188,7 +197,7 @@ $("#submit-cancel_registration").click(function(e) {
|
||||
});
|
||||
|
||||
$("#submit-register").click(function() {
|
||||
if (validateEmail($('#registration-email').val())) {
|
||||
if (validateEmail($('#registration-email').val()) && notDefaultEmails($('#registration-email').val())) {
|
||||
// All fields are required.
|
||||
ajax({
|
||||
url: "<?php echo $ajax; ?>",
|
||||
|
Loading…
x
Reference in New Issue
Block a user