RequestPassword

deprecated [2012-07-02] Use cRequestPassword instead of this class.
author Timo Trautmann
copyright four for business AG

 Methods

RequestPassword()

RequestPassword($oDb, $aCfg) 

Parameters

$oDb

$aCfg

Constructor of RequestPassword initializes class variables

__construct($oDb, $aCfg) 

Parameters

$oDb

$aCfg

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) 
Inherited
access public
inherited_from \cPasswordRequest::renderForm()

Parameters

$return

bool

Return or print template

Function generates new password

_generatePassword() : string
Inherited
access private
inherited_from \cPasswordRequest::_generatePassword()

Returns

string- the new password

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

_handleNewPassword() 
Inherited
access private
inherited_from \cPasswordRequest::_handleNewPassword()

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

_setNewPassword() 
Inherited
access private
inherited_from \cPasswordRequest::_setNewPassword()

Function submits new password to users mail adress

_submitMail(string $password) 
Inherited
access private
inherited_from \cPasswordRequest::_submitMail()

Parameters

$password

string
  • the new password

 Properties

 

$_cfg : array
Inherited
access private
inherited_from \cPasswordRequest::$$_cfg
 

$_db : object
Inherited
access private
inherited_from \cPasswordRequest::$$_db
   

$_isEnabled : boolean
Inherited

Default: This feature is enabled

access private
inherited_from \cPasswordRequest::$$_isEnabled
 

$_mailhost : string
Inherited
access private
inherited_from \cPasswordRequest::$$_mailhost
 

$_passLength : integer
Inherited
access private
inherited_from \cPasswordRequest::$$_passLength
 

$_reloadTime : integer
Inherited
access private
inherited_from \cPasswordRequest::$$_reloadTime
 

$_sendermail : string
Inherited
access private
inherited_from \cPasswordRequest::$$_sendermail
 

$_sendername : string
Inherited
access private
inherited_from \cPasswordRequest::$$_sendername
 

$_tpl : object
Inherited
access private
inherited_from \cPasswordRequest::$$_tpl
 

$_username : string
Inherited
access private
inherited_from \cPasswordRequest::$$_username