mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
vALID EMAIL ERROR
This commit is contained in:
parent
420b2bd941
commit
1857198983
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ if (isValidURL(@$_GET['siteRedirectUri'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$('#inputUser').val().match(/^[0-9a-z@._-]{3,}$/i)) {
|
if (!$('#inputUser').val().match(/^[0-9a-z@._-]{3,}$/i) && !isEmailValid($('#inputUser').val()) ) {
|
||||||
$('#inputUser').closest('.input-group').addClass(errorClass);
|
$('#inputUser').closest('.input-group').addClass(errorClass);
|
||||||
avideoAlertError("<?php echo __("Invalid user"); ?>");
|
avideoAlertError("<?php echo __("Invalid user"); ?>");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue