From bf05c4960cf007b243b605c3dc65ea602462845f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 30 Aug 2016 11:46:56 +0200 Subject: [PATCH] Removed unused stuff from password methods --- .../class_password-methods-crypt.inc | 10 ------ .../class_password-methods.inc | 33 ------------------- 2 files changed, 43 deletions(-) diff --git a/include/password-methods/class_password-methods-crypt.inc b/include/password-methods/class_password-methods-crypt.inc index 46664dc08..7c99e7b94 100644 --- a/include/password-methods/class_password-methods-crypt.inc +++ b/include/password-methods/class_password-methods-crypt.inc @@ -53,16 +53,6 @@ class passwordMethodCrypt extends passwordMethod } } - /*! - * \brief Create template hash - * - * \param string $attrs - */ - function create_template_hash($attrs) - { - return $this->generate_hash('N0T$3T4N0W').'N0T$3T4N0W'; - } - /*! * \brief Generate template hash * diff --git a/include/password-methods/class_password-methods.inc b/include/password-methods/class_password-methods.inc index 736436b18..46b2f7413 100644 --- a/include/password-methods/class_password-methods.inc +++ b/include/password-methods/class_password-methods.inc @@ -44,20 +44,6 @@ class passwordMethod { } - /*! - * \brief Create a template hash - * - * \param $attrs Attr - */ - function create_template_hash($attrs) - { - if ($this->get_hash_name() == "") { - return "{crypt}N0T$3T4N0W"; - } else { - return '{'.$this->get_hash().'}'.'N0T$3T4N0W'; - } - } - /*! * \brief Get the Hash name */ @@ -260,15 +246,6 @@ class passwordMethod { } - /*! - * \brief Method to let passwords backends manage additional information - * besides the userAttribute entry - */ - function set_password($password) - { - return TRUE; - } - /*! * \brief Method to check if a password matches a hash */ @@ -381,16 +358,6 @@ class passwordMethod return $this->hash; } - /*! - * Get the current object - * - * \param string $dn The DN - */ - function adapt_from_template($attrs) - { - return $this; - } - /*! * \brief Test for problematic unicode caracters in password * This can be activated with the keyword strictPasswordRules in the -- GitLab