From: hickert Date: Tue, 10 Jul 2007 12:47:02 +0000 (+0000) Subject: Udpated password method X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d7277d3486cf118686905b914e21a35b9e5e737;p=gosa.git Udpated password method git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6807 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/password/class_password.inc b/plugins/personal/password/class_password.inc index 322fb619d..10e1cc54b 100644 --- a/plugins/personal/password/class_password.inc +++ b/plugins/personal/password/class_password.inc @@ -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))); } }