*** empty log message ***
This commit is contained in:
parent
2cf741cc13
commit
0667e8092d
|
@ -34,20 +34,23 @@ if($action == "checklogin")
|
|||
$config = new Config;
|
||||
$ldap = new Ldap($config);
|
||||
$result = $ldap->connect($username,$password);
|
||||
if($result)
|
||||
if($result == True)
|
||||
{
|
||||
include("./main.php"); // Username/password correct. Loading main Frame.
|
||||
}
|
||||
elseif($result == "Unable to bind to Server!")
|
||||
else
|
||||
{
|
||||
if($ldap->server)
|
||||
{
|
||||
$error_message = "Wrong Password/Username combination. Try again.";
|
||||
include("./login.inc"); // Username/password invalid. Returning to Login page.
|
||||
}
|
||||
elseif($result == "Unable to connect to Server!")
|
||||
else
|
||||
{
|
||||
$error_message = "Cannot connect to specified LDAP-Server. Try again.";
|
||||
include("./login.inc"); // Server not reachable. Returning to Login page.
|
||||
}
|
||||
}
|
||||
}
|
||||
// Loading Login page
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue