From 2cf7ee12d055c02bc71cdd5a71506bbe0bcb943d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 May 2008 11:58:29 +0000 Subject: [PATCH] Added password method description to user dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10790 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 15 +++++++++++++-- gosa-core/plugins/personal/generic/generic.tpl | 4 +++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index f32f662f9..1c2cc61f5 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -591,7 +591,18 @@ class user extends plugin }else{ new msg_dialog(_("Password method"),_("The selected password method is no longer available."),WARNING_DIALOG); } - + + + /* Create password methods array */ + $pwd_methods = array(); + foreach($hashes as $id => $name){ + if(!empty($temp['desc'][$id])){ + $pwd_methods[$name] = $name." (".$temp['desc'][$id].")"; + }else{ + $pwd_methods[$name] = $name; + } + } + /* Load attributes and acl's */ $ui =get_userinfo(); foreach($this->attributes as $val){ @@ -616,7 +627,7 @@ class user extends plugin $smarty->assign("$val"."ACL", $this->getacl($val,(!is_object($this->parent) && !session::is_set('edit')))); } - $smarty->assign("pwmode", $hashes); + $smarty->assign("pwmode", $pwd_methods); $smarty->assign("pwmode_select", $this->pw_storage); $smarty->assign("pw_configurable", $is_configurable); $smarty->assign("passwordStorageACL", $this->getacl("userPassword",(!is_object($this->parent) && !session::is_set('edit')))); diff --git a/gosa-core/plugins/personal/generic/generic.tpl b/gosa-core/plugins/personal/generic/generic.tpl index 7636a9c58..c3bd48504 100644 --- a/gosa-core/plugins/personal/generic/generic.tpl +++ b/gosa-core/plugins/personal/generic/generic.tpl @@ -224,7 +224,9 @@ {render acl=$passwordStorageACL checkbox=$multiple_support checked=$use_pw_storage} {if $pw_configurable eq "true"}   -- 2.30.2