fixed login with empty password
This commit is contained in:
parent
62d5586ddb
commit
065ca2a0d7
|
@ -83,8 +83,11 @@ class Ldap{
|
||||||
// close any prior connection
|
// close any prior connection
|
||||||
@$this->close();
|
@$this->close();
|
||||||
// do not allow anonymous bind
|
// do not allow anonymous bind
|
||||||
if ((!$user)||($user == "")) {
|
if ((!$user)||($user == "")||(!$passwd)) {
|
||||||
echo _("No username was specified!");
|
echo ("<html><head><title></title>");
|
||||||
|
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\"></head><body>");
|
||||||
|
StatusMessage("ERROR", "", _("No username was specified or password is empty!"));
|
||||||
|
echo ("<br><br><a href=\"login.php\">" . _("Back to Login") . "</a></body></html>");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
// save password und username encrypted
|
// save password und username encrypted
|
||||||
|
|
Loading…
Reference in New Issue