2016-09-02 11:17:10 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* PasswordResetForm.php
|
|
|
|
* Contains the password reset form template.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
class PasswordResetForm extends SubTemplate
|
|
|
|
{
|
|
|
|
private $email;
|
|
|
|
private $key;
|
|
|
|
|
|
|
|
public function __construct($email, $key)
|
|
|
|
{
|
|
|
|
$this->email = $email;
|
|
|
|
$this->key = $key;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function html_content()
|
|
|
|
{
|
|
|
|
echo '
|
2023-03-11 13:44:36 +01:00
|
|
|
<h1 class="mb-4">Password reset procedure</h1>';
|
2016-09-02 11:17:10 +02:00
|
|
|
|
|
|
|
foreach ($this->_subtemplates as $template)
|
|
|
|
$template->html_main();
|
|
|
|
|
|
|
|
echo '
|
2023-03-11 13:44:36 +01:00
|
|
|
<p>You have successfully confirmed your identify. Please use the form below to set a new password.</p>
|
|
|
|
<form action="', BASEURL, '/resetpassword/?step=2&email=', rawurlencode($this->email), '&key=', $this->key, '" method="post">
|
|
|
|
<div class="row mt-3">
|
|
|
|
<label class="col-sm-2 col-form-label" for="field_password1">New password:</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="password" class="form-control" id="field_password1" name="password1">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
|
|
<label class="col-sm-2 col-form-label" for="field_password2">Repeat new password:</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<input type="password" class="form-control" id="field_password2" name="password2">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="offset-sm-2 col-sm-2">
|
2016-09-02 11:17:10 +02:00
|
|
|
<button type="submit" class="btn btn-primary">Reset password</button>
|
2023-03-11 13:44:36 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>';
|
2016-09-02 11:17:10 +02:00
|
|
|
}
|
|
|
|
}
|