class modCaptchaStandard extends ModeleCaptcha (View source)

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

Properties

string $id
string $version from  ModeleCaptcha
int $position
string $picto
string $error from  ModeleCaptcha
DoliDB $db from  ModeleCaptcha
Conf $conf from  ModeleCaptcha
Translate $langs from  ModeleCaptcha
User $user from  ModeleCaptcha

Methods

isEnabled()

Return if a module can be used or not

getDescription()

Return description of module

getFieldInputTitle()

Return description of module

getExample()

Return an example of password generated by this module

string
getCaptchaCodeForForm($php_self = '')

Return the HTML content to output on a form that need the captcha

validateCodeAfterLoginSubmit()

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

__construct($db, Conf $conf, Translate $langs, User $user)

Constructor

Details

isEnabled()

Return if a module can be used or not

@return boolean true if module can be used

getDescription()

Return description of module

@return string Description of module

getFieldInputTitle()

Return description of module

@return string Description of module

getExample()

Return an example of password generated by this module

@return string Example of password

string getCaptchaCodeForForm($php_self = '')

Return the HTML content to output on a form that need the captcha

@param string $php_self An URL for the a href link

Parameters

$php_self

Return Value

string

The HTML code to output

validateCodeAfterLoginSubmit()

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

@return int 0 if KO, >0 if OK

__construct($db, Conf $conf, Translate $langs, User $user)

Constructor

@param DoliDB $db Database handler

Parameters

$db
Conf $conf

Handler de conf

Translate $langs

Handler de langue

User $user

Handler du user connected