Code

Udpated password method
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 12:47:02 +0000 (12:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 12:47:02 +0000 (12:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6807 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/password/class_password.inc

index 322fb619dd25d5a987d99e64fa56b8659d93fa57..10e1cc54bb4f0f368f399558c9c1d4ef9704b64b 100644 (file)
@@ -68,7 +68,7 @@ class password extends plugin
       }
 
       /* Check given values */    
-      if(empty($_POST['current_password'])){
+      if(!isset($_POST['current_password']) || empty($_POST['current_password'])){
         print_red(_("You need to specify your current password in order to proceed."));
       }elseif ($_POST['new_password'] != $_POST['repeated_password']){
         print_red(_("The passwords you've entered as 'New password' and 'Repeated new password' do not match."));
@@ -79,7 +79,7 @@ class password extends plugin
       }elseif($check_length && (strlen($_POST['new_password']) < $length)){
         print_red(_("The password used as new is to short."));
       }elseif($check_hook && $check_hook_output != ""){
-        print_red(_("External password changer reported a problem: ".$output));
+        print_red(_("External password changer reported a problem: ".$check_hook_output));
       }else{
 
         /* Try to connect via current password */
@@ -110,7 +110,6 @@ class password extends plugin
         }
       }
     }
-
     return($smarty->fetch(get_template_path("password.tpl", TRUE)));
   } 
 }