Select only needed fields in UserModel::searchUsers()
This commit is contained in:
parent
b239e220cc
commit
96bd9da23e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user