modCaptchaStandard
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
Return description of module
Return an example of password generated by this module
Return the HTML content to output on a form that need the captcha
Validate a captcha This function is called after a log to validate a captcha, before validating a password.
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
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