From: hickert Date: Mon, 3 Apr 2006 07:05:18 +0000 (+0000) Subject: Added password slection to copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d21b212f78be4732d66bc24ed72b7bddee333f5;p=gosa.git Added password slection to copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2947 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 045740c18..1a4d6ba7c 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -181,7 +181,6 @@ class userManagement extends plugin $ret = $this->CopyPasteHandler->execute(false); if($ret) return($ret); $this->reload(); - $s_action = "change_pw"; $dn = $this->CopyPasteHandler->lastdn; foreach($this->list as $id => $entry){ @@ -189,7 +188,9 @@ class userManagement extends plugin $s_entry = $id; } } - $s_action = "change_pw"; + if($_POST['passwordTodo'] == "new"){ + $s_action = "change_pw"; + } } diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index c56ddfa7f..4f11d3991 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1237,6 +1237,12 @@ class user extends plugin $smarty = get_smarty(); + $smarty->assign("passwordTodo","clear"); + + if(isset($_POST['passwordTodo'])){ + $smarty->assign("passwordTodo",$_POST['passwordTodo']); + } + $smarty->assign("sn", $this->sn); $smarty->assign("givenName",$this->givenName); $smarty->assign("uid", $this->uid); @@ -1251,7 +1257,6 @@ class user extends plugin if((isset($_FILES['picture_file']['tmp_name'])) && ($_FILES['picture_file']['size'] > 0)){ $this->set_picture($_FILES['picture_file']['tmp_name']); - echo "changed"; } /* Remove picture? */ diff --git a/plugins/personal/generic/paste_generic.tpl b/plugins/personal/generic/paste_generic.tpl index 9ab8f23ff..5768c4cdf 100644 --- a/plugins/personal/generic/paste_generic.tpl +++ b/plugins/personal/generic/paste_generic.tpl @@ -27,6 +27,15 @@ + + + {t}Password{/t} + + + {t}Clear password{/t}
+ {t}Set new password{/t} + +