Class cPasswordRequest
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 address. 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.
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Trautmann
Located at classes/class.password.request.php
public
|
|
public
string
|
#
renderForm( boolean $return = false )
Function displays form for password request, if password is submitted this function also starts the passwort reset request and sending process |
public
|
|
protected
|
#
_getCurrentRequests( )
Getter function to obtain an array of all current user password reset requests |
protected
string
|
#
_handleNewPassword( )
Function checks password request for errors and sends a mail using _submitMail() in case of valid requests |
protected
|
#
_handleResetPw( )
Function checks password reset request for errors and sets a new password in case there is no error |
protected
boolean
|
#
_safePwResetRequest( string $token, DateTime $expiration )
Save request into db for future validity check |
protected
|
|
protected
string
|
protected
|
$_db
The CONTENIDO database object |
|
protected
array
|
$_cfg
The CONTENIDO configuration array |
|
protected
|
$_tpl
The CONTENIDO template object |
|
protected
string
|
$_username
Username of user which requests password |
|
protected
string
|
$_email
E-mail address of user which requests password |
|
protected
integer
|
$_reloadTime
Time in minutes after which user is allowed to request a new password |
|
protected
integer
|
$_tokenLength
Length of validation token, which is generated automatically |
|
protected
boolean
|
$_isEnabled
Defines if passwort request is enabled or disabled. Default: This feature is enabled |
|
protected
string
|
$_sendermail
E-mail address of the sender |
|
protected
string
|
$_sendername
Name of the sender |