From 10aed96fc1cec8e2987539dc199a3bec60eae77a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 13 Jul 2007 06:08:07 +0000 Subject: [PATCH] password.php. Added missing error message, in case of wrong username or password given. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6853 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/password.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/html/password.php b/html/password.php index a8fc0ccf3..26eafb479 100644 --- a/html/password.php +++ b/html/password.php @@ -210,18 +210,18 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])){ $message[]= _("Please specify your password!"); } else { - /* Do we have the selected user somewhere? */ - $ui= ldap_login_user ($uid, $current_password); - if ($ui == NULL){ - $message[]= _(""); - } else { - /* Check acl... */ - $ca= get_permissions ($ui->dn, $ui->subtreeACL); - $ca= get_module_permission($ca, "user", $ui->dn); - if (chkacl($ca, "password") != ""){ - $message[]= _("You have no permissions to change your password."); - } - } + /* Do we have the selected user somewhere? */ + $ui= ldap_login_user ($uid, $current_password); + if ($ui == NULL){ + $message[]= _("Please check the username/password combination."); + } else { + /* Check acl... */ + $ca= get_permissions ($ui->dn, $ui->subtreeACL); + $ca= get_module_permission($ca, "user", $ui->dn); + if (chkacl($ca, "password") != ""){ + $message[]= _("You have no permissions to change your password."); + } + } } /* Do we need to show error messages? */ -- 2.30.2