summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/Base.php2
-rw-r--r--app/Auth/Ldap.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Auth/Base.php b/app/Auth/Base.php
index 3abd47f2..9633af4f 100644
--- a/app/Auth/Base.php
+++ b/app/Auth/Base.php
@@ -29,7 +29,7 @@ abstract class Base
* Container instance
*
* @access protected
- * @var Pimple\Container
+ * @var \Pimple\Container
*/
protected $container;
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php
index 4f20998f..5bb60275 100644
--- a/app/Auth/Ldap.php
+++ b/app/Auth/Ldap.php
@@ -104,7 +104,7 @@ class Ldap extends Base
{
$ldap = $this->connect();
- if ($this->bind($ldap, $username, $password)) {
+ if (is_resource($ldap) && $this->bind($ldap, $username, $password)) {
return $this->search($ldap, $username, $password);
}