Skip to content

Commit

Permalink
Fix users being able to bypass email verification (#3569)
Browse files Browse the repository at this point in the history
* Fix users being able to bypass email verification

* Remove comment

* Use single quotes
  • Loading branch information
supercrafter100 authored Dec 21, 2024
1 parent 544e0c6 commit b6c1e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/Core/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public static function check(array $source, array $items = []): Validate
break;

case self::IS_ACTIVE:
$check = $validator->_db->get('users', [$item, $value]);
$check = $validator->_db->query('SELECT * FROM nl2_users WHERE username = ? OR email = ?', [$value, $value]);
if (!$check->count()) {
break;
}
Expand Down

0 comments on commit b6c1e6d

Please sign in to comment.