Commit 61dc0e00 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(recovery) Put init in init() rather than constructor

issue #5854
Showing with 21 additions and 18 deletions
+21 -18
...@@ -19,36 +19,38 @@ ...@@ -19,36 +19,38 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
class passwordRecovery extends standAlonePage { class passwordRecovery extends standAlonePage
{
protected $loginAttribute; protected $loginAttribute;
protected $login; protected $login;
var $message = array(); protected $email_address;
var $email_address;
var $step = 1; protected $message;
protected $step;
/* Some Configuration variable */
/* Salt needed to mask the uniq id in the ldap */ /* Salt needed to mask the uniq id in the ldap */
var $salt; protected $salt;
/* Delay allowed for the user to change his password (minutes) */ /* Delay allowed for the user to change his password (minutes) */
var $delay_allowed; protected $delay_allowed;
/* Sender */ /* Sender */
var $from_mail; protected $from_mail;
var $mail_body; protected $mail_body;
var $mail_subject; protected $mail_subject;
var $mail2_body; protected $mail2_body;
var $mail2_subject; protected $mail2_subject;
var $usealternates; protected $usealternates;
/* Constructor */ function init()
function __construct($interactive = TRUE)
{ {
parent::__construct($interactive); parent::init();
$this->step = 1;
$this->message = array();
if (isset($_GET['email_address']) && ($_GET['email_address'] != '')) { if (isset($_GET['email_address']) && ($_GET['email_address'] != '')) {
$this->email_address = validate($_GET['email_address']); $this->email_address = validate($_GET['email_address']);
...@@ -196,7 +198,8 @@ class passwordRecovery extends standAlonePage { ...@@ -196,7 +198,8 @@ class passwordRecovery extends standAlonePage {
$dn, LDAP_ADD, get_class()); $dn, LDAP_ADD, get_class());
} }
return ""; /* Everything went well */ /* Everything went well */
return '';
} }
function checkToken($token) function checkToken($token)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment