diff --git a/htdocs/core/lib/security.lib.php b/htdocs/core/lib/security.lib.php index 4a21171fdd3..03612250b85 100644 --- a/htdocs/core/lib/security.lib.php +++ b/htdocs/core/lib/security.lib.php @@ -76,6 +76,7 @@ function dol_decode($chain) * @param string $chain String to hash * @param string $type Type of hash ('0':auto, '1':sha1, '2':sha1+md5, '3':md5, '4':md5 for OpenLdap, '5':sha256). Use '3' here, if hash is not needed for security purpose, for security need, prefer '0'. * @return string Hash of string + * @getRandomPassword */ function dol_hash($chain, $type='0') { diff --git a/htdocs/core/lib/security2.lib.php b/htdocs/core/lib/security2.lib.php index a61d103c16f..b6a348ea91d 100644 --- a/htdocs/core/lib/security2.lib.php +++ b/htdocs/core/lib/security2.lib.php @@ -445,6 +445,7 @@ function encodedecode_dbpassconf($level=0) * * @param boolean $generic true=Create generic password (32 chars/numbers), false=Use the configured password generation module * @return string New value for password + * @see dol_hash */ function getRandomPassword($generic=false) {