Description: Class for handling password recovery

author Timo Trautmann
copyright four for business AG

 Methods

Constructor of RequestPassword initializes class variables

__construct(object $db, array $cfg) 
access public

Parameters

$db

object
  • The CONTENIDO database object

$cfg

array
  • The CONTENIDO configuration array

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(bool $return) 
access public

Parameters

$return

bool

Return or print template

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 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 $password) 
access private

Parameters

$password

string
  • the new password

 Properties

 

$_cfg : array
access private
 

$_db : object
access private
   

$_isEnabled : boolean

Default: This feature is enabled

access private
 

$_mailhost : string
access private
 

$_passLength : integer
access private
 

$_reloadTime : integer
access private
 

$_sendermail : string
access private
 

$_sendername : string
access private
 

$_tpl : object
access private
 

$_username : string
access private