|
dolibarr
13.0.2
|
Class to generate a password according to personal rules. More...
Inheritance diagram for modGeneratePassPerso:
Collaboration diagram for modGeneratePassPerso:Public Member Functions | |
| __construct ($db, $conf, $langs, $user) | |
| Constructor. More... | |
| getDescription () | |
| Return description of module. More... | |
| getExample () | |
| Return an example of password generated by this module. More... | |
| getNewGeneratedPassword () | |
| Build new password. More... | |
| validatePassword ($password) | |
| Validate a password. More... | |
Public Member Functions inherited from ModeleGenPassword | |
| isEnabled () | |
| Return if a module can be used or not. More... | |
| getDescription () | |
| Return description of module. More... | |
| getExample () | |
| Return an example of password generated by this module. More... | |
| getNewGeneratedPassword () | |
| Build new password. More... | |
| validatePassword ($password) | |
| Validate a password. More... | |
Private Member Functions | |
| consecutiveInterationSameCharacter ($password) | |
| Check the consecutive iterations of the same character. More... | |
Class to generate a password according to personal rules.
Definition at line 34 of file modGeneratePassPerso.class.php.
| modGeneratePassPerso::__construct | ( | $db, | |
| $conf, | |||
| $langs, | |||
| $user | |||
| ) |
|
private |
Check the consecutive iterations of the same character.
Return false if the number doesn't match the maximum consecutive value allowed.
| string | $password | Password to check |
Definition at line 214 of file modGeneratePassPerso.class.php.
Referenced by validatePassword().
| modGeneratePassPerso::getDescription | ( | ) |
Return description of module.
Definition at line 123 of file modGeneratePassPerso.class.php.
| modGeneratePassPerso::getExample | ( | ) |
Return an example of password generated by this module.
Definition at line 134 of file modGeneratePassPerso.class.php.
References getNewGeneratedPassword().
| modGeneratePassPerso::getNewGeneratedPassword | ( | ) |
Build new password.
Definition at line 144 of file modGeneratePassPerso.class.php.
References validatePassword().
Referenced by getExample().
| modGeneratePassPerso::validatePassword | ( | $password | ) |
Validate a password.
| string | $password | Password to check |
Definition at line 182 of file modGeneratePassPerso.class.php.
References consecutiveInterationSameCharacter().
Referenced by getNewGeneratedPassword().