Methods
Constructor of RequestPassword initializes class variables
RequestPassword(object $oDb, array $aCfg)
Parameters
$oDb
object
- The contenido database object
$aCfg
array
- The contenido configuration array
Function generates new password
generatePassword() : string
Returns
string
- the new password
Function checks password request for errors an delegate request to setNewPassword() if there is no error
handleNewPassword()
Function sets new password for user and sets last request time to now
setNewPassword()
Function submits new password to users mail adress
submitMail(string $sPassword)
Properties
The contenido configuration array
$aCfg : array
Definies if passwort request is enabled or disabled.
$bIsEnabled : boolean
Default: This feature is enabled
Length of new passwort, which is generated automatically
$iPassLength : integer
Time in minutes after which user is allowed to request a new password
$iReloadTime : integer
The contenido database object
$oDb : object
The contenido template object
$oTpl : object
E-mail address of user which requests password
$sEmail : string
Host of mailserver, which sends new password via mail
$sMailhost : string
E-mail address of the sender
$sSendermail : string
Name of the sender
$sSendername : string
Username of user which requests password
$sUsername : string