This commit is contained in:
David Bensel
2020-12-14 22:40:47 +03:00
parent 8320546641
commit bc9f7c83f4
3660 changed files with 183847 additions and 274871 deletions

View File

@@ -39,9 +39,9 @@ class modGeneratePassStandard extends ModeleGenPassword
public $length;
/**
* @var DoliDB Database handler.
*/
public $db;
* @var DoliDB Database handler.
*/
public $db;
public $conf;
public $lang;
@@ -70,7 +70,7 @@ class modGeneratePassStandard extends ModeleGenPassword
/**
* Return description of module
*
* @return string Description of module
* @return string Description of module
*/
public function getDescription()
{
@@ -81,7 +81,7 @@ class modGeneratePassStandard extends ModeleGenPassword
/**
* Return an example of password generated by this module
*
* @return string Example of password
* @return string Example of password
*/
public function getExample()
{
@@ -91,7 +91,7 @@ class modGeneratePassStandard extends ModeleGenPassword
/**
* Build new password
*
* @return string Return a new generated password
* @return string Return a new generated password
*/
public function getNewGeneratedPassword()
{
@@ -122,15 +122,15 @@ class modGeneratePassStandard extends ModeleGenPassword
return $password;
}
/**
* Validate a password
*
* @param string $password Password to check
* @return int 0 if KO, >0 if OK
*/
public function validatePassword($password)
{
if (dol_strlen($password) < $this->length) return 0;
return 1;
}
/**
* Validate a password
*
* @param string $password Password to check
* @return int 0 if KO, >0 if OK
*/
public function validatePassword($password)
{
if (dol_strlen($password) < $this->length) return 0;
return 1;
}
}