dolibarr 21.0.0-alpha
modCaptchaStandard Class Reference

Class to generate a password according to a dolibarr standard rule (12 random chars) More...

Inheritance diagram for modCaptchaStandard:
Collaboration diagram for modCaptchaStandard:

Public Member Functions

 __construct ($db, $conf, $langs, $user)
 Constructor.
 
 getDescription ()
 Return description of module.
 
 getExample ()
 Return an example of password generated by this module.
 
 validateCodeAfterLoginSubmit ()
 Validate a captcha This function is called after a log to validate a captcha, before validating a password.
 
- Public Member Functions inherited from ModeleCaptcha
 isEnabled ()
 Return if a module can be used or not.
 

Detailed Description

Class to generate a password according to a dolibarr standard rule (12 random chars)

Definition at line 33 of file modCaptchaStandard.class.php.

Constructor & Destructor Documentation

◆ __construct()

modCaptchaStandard::__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 50 of file modCaptchaStandard.class.php.

References conf(), and user.

Member Function Documentation

◆ getDescription()

modCaptchaStandard::getDescription ( )

Return description of module.

Returns
string Description of module

Reimplemented from ModeleCaptcha.

Definition at line 65 of file modCaptchaStandard.class.php.

◆ getExample()

modCaptchaStandard::getExample ( )

Return an example of password generated by this module.

Returns
string Example of password

Reimplemented from ModeleCaptcha.

Definition at line 76 of file modCaptchaStandard.class.php.

◆ validateCodeAfterLoginSubmit()

modCaptchaStandard::validateCodeAfterLoginSubmit ( )

Validate a captcha This function is called after a log to validate a captcha, before validating a password.

Returns
int 0 if KO, >0 if OK

Reimplemented from ModeleCaptcha.

Definition at line 105 of file modCaptchaStandard.class.php.


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