Select only needed fields in UserModel::searchUsers()

This commit is contained in:
Thomas Rubini 2023-01-23 13:46:36 +01:00
parent b239e220cc
commit 96bd9da23e
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -85,7 +85,8 @@ final class UserModel extends UserSessionModel
{
$O_model = Model::get();
$stmt = $O_model->prepare("
SELECT * FROM USER
SELECT ID, EMAIL, USERNAME
FROM USER
WHERE USER.USERNAME LIKE :full_query
OR USER.EMAIL LIKE :full_query
LIMIT 10