git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 38534e19 authored by Matt Lee's avatar Matt Lee

Only return a user that is active

parent 1a78646c
......@@ -53,7 +53,7 @@ class User {
$row = $data;
} else {
global $adodb;
$query = 'SELECT * FROM Users WHERE lower(username) = lower(' . $adodb->qstr($name) . ') LIMIT 1';
$query = 'SELECT * FROM Users WHERE active = 1 AND lower(username) = lower(' . $adodb->qstr($name) . ') LIMIT 1';
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$row = $adodb->CacheGetRow(7200, $query);
if (!$row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment