summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7aed83)
raw | patch | inline | side by side (parent: a7aed83)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 Jul 2007 06:08:07 +0000 (06:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 Jul 2007 06:08:07 +0000 (06:08 +0000) |
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6853 594d385d-05f5-0310-b6e9-bd551577e9d8
html/password.php | patch | blob | history |
diff --git a/html/password.php b/html/password.php
index a8fc0ccf3b159a016ac0681196812cfba753ddc0..26eafb47907296a38f0e2d3f11174649ab8a0b81 100644 (file)
--- a/html/password.php
+++ b/html/password.php
$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? */