This commit is contained in:
Isaac Connor 2021-04-26 09:40:02 -04:00
parent 4385076e66
commit 7901950c48
1 changed files with 1 additions and 3 deletions

View File

@ -58,11 +58,9 @@ function migrateHash($user, $pass) {
// core function used to load a User record by username and password
function validateUser($username='', $password='') {
$sql = 'SELECT * FROM Users WHERE Enabled=1 AND Username=?';
// local user, shouldn't affect the global user
$user = dbFetchOne($sql, NULL, array($username));
if (!$user) {
return array(false, "Could not retrieve user $username details");
}