mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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;
|
||||
}
|
||||
}
|
||||
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);
|
||||
avideoAlertError("<?php echo __("Invalid user"); ?>");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue