Commit c0af4fb0 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Teste si le login existe dans l'annuaire LDAP !

parent fa9df0ed
......@@ -40,9 +40,11 @@ class StorageAdapter extends PdoAdapter
return parent::checkPassword($user, $password);
}
$user = $this->getUser($username);
if ($user = $this->getUser($username)) {
return $this->checkPassword($user, $password);
}
return $this->checkPassword($user, $password);
return false;
}
/**
......
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