1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

vALID EMAIL ERROR

This commit is contained in:
Daniel 2022-03-10 16:17:04 -03:00
parent 420b2bd941
commit 1857198983

View file

@ -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;