dolibarr 21.0.0-beta
modGeneratePassNone Class Reference

Class to generate a password according to rule 'no password'. More...

Inheritance diagram for modGeneratePassNone:
Collaboration diagram for modGeneratePassNone:

Public Member Functions

 __construct ($db, $conf, $langs, $user)
 Constructor.
 
 getDescription ()
 Return description of module.
 
 getExample ()
 Return an example of password generated by this module.
 
 getNewGeneratedPassword ()
 Build new password.
 
 validatePassword ($password)
 Validate a password.
 
- Public Member Functions inherited from ModeleGenPassword
 isEnabled ()
 Return if a module can be used or not.
 

Detailed Description

Class to generate a password according to rule 'no password'.

Definition at line 32 of file modGeneratePassNone.class.php.

Constructor & Destructor Documentation

◆ __construct()

modGeneratePassNone::__construct ( $db,
$conf,
$langs,
$user )

Constructor.

Parameters
DoliDB$dbDatabase handler
Conf$confHandler de conf
Translate$langsHandler de langue
User$userHandler du user connected

Definition at line 49 of file modGeneratePassNone.class.php.

References conf(), and user.

Member Function Documentation

◆ getDescription()

modGeneratePassNone::getDescription ( )

Return description of module.

Returns
string Description of text

Reimplemented from ModeleGenPassword.

Definition at line 66 of file modGeneratePassNone.class.php.

◆ getExample()

modGeneratePassNone::getExample ( )

Return an example of password generated by this module.

Returns
string Example of password

Reimplemented from ModeleGenPassword.

Definition at line 77 of file modGeneratePassNone.class.php.

◆ getNewGeneratedPassword()

modGeneratePassNone::getNewGeneratedPassword ( )

Build new password.

Returns
string Return a new generated password

Reimplemented from ModeleGenPassword.

Definition at line 87 of file modGeneratePassNone.class.php.

◆ validatePassword()

modGeneratePassNone::validatePassword ( $password)

Validate a password.

This function is called by User->setPassword() and internally to validate that the password matches the constraints.

Parameters
string$passwordPassword to check
Returns
int 0 if KO, >0 if OK

Reimplemented from ModeleGenPassword.

Definition at line 99 of file modGeneratePassNone.class.php.


The documentation for this class was generated from the following file: