fix management create user

This commit is contained in:
xiaomlove
2023-01-07 16:27:27 +08:00
parent ad6e66ce56
commit 3cc0d364a8
8 changed files with 40 additions and 24 deletions

View File

@@ -1485,8 +1485,8 @@ function check_email ($email) {
if(!preg_match('/^[A-Za-z0-9][A-Za-z0-9_.+\-]*@[A-Za-z0-9][A-Za-z0-9_+\-]*(\.[A-Za-z0-9][A-Za-z0-9_+\-]*)+$/', $email)) {
return false;
}
$bannedEmails = mysql_fetch_assoc(sql_query('select * from bannedemails'));
$bannedEmailsArr = preg_split('/[\s]+/', $bannedEmails['value'] ?? '');
$bannedEmails = \Nexus\Database\NexusDB::select('select * from bannedemails');
$bannedEmailsArr = preg_split('/[\s]+/', $bannedEmails[0]['value'] ?? '');
if (empty($bannedEmailsArr)) {
return true;
}