Add forgot password feature
This commit is contained in:
16
app/Template/password_reset/change.php
Normal file
16
app/Template/password_reset/change.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="form-login">
|
||||
<h2><?= t('Password Reset') ?></h2>
|
||||
<form method="post" action="<?= $this->url->href('PasswordReset', 'update', array('token' => $token)) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<?= $this->form->label(t('New password'), 'password') ?>
|
||||
<?= $this->form->password('password', $values, $errors) ?><br/>
|
||||
|
||||
<?= $this->form->label(t('Confirmation'), 'confirmation') ?>
|
||||
<?= $this->form->password('confirmation', $values, $errors) ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Change Password') ?>" class="btn btn-blue"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
17
app/Template/password_reset/create.php
Normal file
17
app/Template/password_reset/create.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="form-login">
|
||||
<h2><?= t('Password Reset') ?></h2>
|
||||
<form method="post" action="<?= $this->url->href('PasswordReset', 'save') ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<?= $this->form->label(t('Username'), 'username') ?>
|
||||
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required')) ?>
|
||||
|
||||
<?= $this->form->label(t('Enter the text below'), 'captcha') ?>
|
||||
<img src="<?= $this->url->href('Captcha', 'image') ?>"/>
|
||||
<?= $this->form->text('captcha', array(), $errors, array('required')) ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Change Password') ?>" class="btn btn-blue"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
6
app/Template/password_reset/email.php
Normal file
6
app/Template/password_reset/email.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<p><?= t('To reset your password click on this link:') ?></p>
|
||||
|
||||
<p><?= $this->url->to('PasswordReset', 'change', array('token' => $token), '', true) ?></p>
|
||||
|
||||
<hr>
|
||||
Kanboard
|
||||
Reference in New Issue
Block a user