diff --git a/README.md b/README.md
index 573252d..d9bbd2a 100755
--- a/README.md
+++ b/README.md
@@ -164,7 +164,7 @@ Your LDAP hostname or LDAP IP, to connect to the LDAP server.
#### $port
Your LDAP port, to connect to the LDAP server. By default : 389.
#### $ldap_version
-Your LDAP version, or protocol version used by your server. By default : 3. This parameter avoid LDAP blind error with LDAP 3 (issue )
+Your LDAP version, or protocol version used by your server. By default : 3. This parameter avoid LDAP blind error with LDAP 3 (issue #14)
#### $search_attribute
The attribute used to identify user on your LDAP. Should be uid, email, cn or sAMAccountName.
#### $base
diff --git a/oauth/connexion.php b/oauth/connexion.php
index e16ed87..5fe8244 100644
--- a/oauth/connexion.php
+++ b/oauth/connexion.php
@@ -45,7 +45,7 @@ else
}
catch (Exception $e)
{
- echo json_encode(array("error" => "Impossible to get data", "message" => $e->getMessage()));
+ $resp = json_encode(array("error" => "Impossible to get data", "message" => $e->getMessage()));
$authenticated = false;
}
@@ -71,6 +71,7 @@ else
{
echo "Authentication failed ... Check your username and password.
If error persist contact your administrator.
";
echo 'Click here to come back to login page';
+ echo '
' . $resp;
}
}
}