contenido\classes\class.request.password.php
Description: Class for handling passwort recovery for backend users. If a user has set his e-mail address, this class generates a new Password for user and submits to his e-mail adress. Submitting a new Password is only possible every 30 minutes Mailsender, Mailsendername and Mailserver are set into system properties. There it is also possible to deactivate this feature.
Requirements:
- Author
- Timo Trautmann
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend classes
- Since
- file available since 2008-03-20 {@internal created 2008-03-20 modified 2008-06-30, Dominik Ziegler, add security fix modified 2010-05-27, Oliver Lohkemper, check if user activ in handleNewPassword() modified 2011-02-26, Ortwin Pinke, added temporary pw request behaviour, so user may login with old and/or requested pw $Id: class.request.password.php 1309 2011-02-26 14:32:42Z oldperl $: }}
- Version
- 1.1.0
\RequestPassword
- Author
- Timo Trautmann
- Copyright
- four for business AG
Properties


boolean $bIsEnabled
Default: This feature is enabled
- Type
- boolean
- Access
- private


integer $iPassLength
- Type
- integer
- Access
- private


integer $iReloadTime
- Type
- integer
- Access
- private


string $sMailhost
- Type
- string
- Access
- private
Methods


RequestPassword(object $oDb, array $aCfg) : void
Constructor of RequestPassword initializes class variables
Name | Type | Description |
---|---|---|
$oDb | object |
|
$aCfg | array |
|
- Access
- public


generatePassword() : string
Function generates new password
Type | Description |
---|---|
string | - the new password |
- Access
- private


handleNewPassword() : void
Function checks password request for errors an delegate request to setNewPassword() if there is no error
- Access
- private


renderForm() : void
Function displays form for password request and sets new password, if password is submitted this function also starts the passwort change an sending process
- Access
- public


setNewPassword() : void
Function sets new password for user and sets last request time to now
- Access
- private