From: hickert Date: Mon, 3 Nov 2008 08:47:04 +0000 (+0000) Subject: Added function to passwordMethod, create_template_hash() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=73284813f31c85b50f2ed011eddecea10d7ccc82;p=gosa.git Added function to passwordMethod, create_template_hash() -Allows to set password methods in templates too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12862 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc index 86441b533..13bf07ec2 100644 --- a/gosa-core/include/password-methods/class_password-methods.inc +++ b/gosa-core/include/password-methods/class_password-methods.inc @@ -32,6 +32,14 @@ class passwordMethod { } + function create_template_hash($attrs) + { + if($this->get_hash_name() == ""){ + return("{crypt}N0T$3T4N0W"); + }else{ + return('{'.$this->get_hash_name().'}').'N0T$3T4N0W'; + } + } function get_hash_name() {