From 73284813f31c85b50f2ed011eddecea10d7ccc82 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Nov 2008 08:47:04 +0000 Subject: [PATCH] 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 --- .../include/password-methods/class_password-methods.inc | 8 ++++++++ 1 file changed, 8 insertions(+) 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() { -- 2.30.2