Commit 5b151852 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #981 Improve the FusionDirectory API

parent 99da5d46
No related merge requests found
Showing with 27 additions and 5 deletions
+27 -5
...@@ -20,15 +20,31 @@ ...@@ -20,15 +20,31 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
/*! \brief This class contains all the functions for sha password methods /*
* * \file class_pasword-methods-sha.inc
* Source code for class passwordMethodsha
*/
/*!
* \brief This class contains all the functions for sha password methods
* \see passwordMethod
*/ */
class passwordMethodsha extends passwordMethod class passwordMethodsha extends passwordMethod
{ {
/*!
* \brief passwordMethodsha Constructor
*
* \param string $config
*/
function passwordMethodsha($config) function passwordMethodsha($config)
{ {
} }
/*!
* \brief Is available
*
* \return TRUE if is avaibable, otherwise return false
*/
function is_available() function is_available()
{ {
if (function_exists('sha1')){ if (function_exists('sha1')){
...@@ -40,7 +56,11 @@ class passwordMethodsha extends passwordMethod ...@@ -40,7 +56,11 @@ class passwordMethodsha extends passwordMethod
} }
} }
/*!
* \brief Generate template hash
*
* \param string $password Password
*/
function generate_hash($password) function generate_hash($password)
{ {
if (function_exists('sha1')) { if (function_exists('sha1')) {
...@@ -55,7 +75,9 @@ class passwordMethodsha extends passwordMethod ...@@ -55,7 +75,9 @@ class passwordMethodsha extends passwordMethod
return $hash; return $hash;
} }
/*!
* \brief Get the hash name
*/
function get_hash_name() function get_hash_name()
{ {
return "sha"; return "sha";
......
  • bmortier @bmortier

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:15 (imported from GitLab)

    ·

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:15 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment