mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 17:59:21 +02:00
fixed login with empty password
This commit is contained in:
parent
62d5586ddb
commit
065ca2a0d7
1 changed files with 6 additions and 3 deletions
|
@ -83,8 +83,11 @@ class Ldap{
|
|||
// close any prior connection
|
||||
@$this->close();
|
||||
// do not allow anonymous bind
|
||||
if ((!$user)||($user == "")) {
|
||||
echo _("No username was specified!");
|
||||
if ((!$user)||($user == "")||(!$passwd)) {
|
||||
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;
|
||||
}
|
||||
// save password und username encrypted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue