Description: Class for handling passwort recovery

author Timo Trautmann
copyright four for business AG

 Methods

Constructor of RequestPassword initializes class variables

RequestPassword(object $oDb, array $aCfg) 
access public

Parameters

$oDb

object
  • The contenido database object

$aCfg

array
  • The contenido configuration array

Function generates new password

generatePassword() : string
access private

Returns

string- the new password

Function checks password request for errors an delegate request to setNewPassword() if there is no error

handleNewPassword() 
access private

Function displays form for password request and sets new password, if password is submitted this function also starts the passwort change an sending process

renderForm() 
access public

Function sets new password for user and sets last request time to now

setNewPassword() 
access private

Function submits new password to users mail adress

submitMail(string $sPassword) 
access private

Parameters

$sPassword

string
  • the new password

 Properties

 

$aCfg : array
access private
 

$bIsEnabled : boolean

Default: This feature is enabled

access private
 

$iPassLength : integer
access private
 

$iReloadTime : integer
access private
 

$oDb : object
access private
 

$oTpl : object
access private
 

$sEmail : string
access private
 

$sMailhost : string
access private
 

$sSendermail : string
access private
 

$sSendername : string
access private
 

$sUsername : string
access private