From 26e3996014936268f4acbfa214fa881af9320ddd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 9 Jan 2016 17:28:31 -0500 Subject: Add forgot password feature --- app/Template/password_reset/change.php | 16 ++++++++++++++++ app/Template/password_reset/create.php | 17 +++++++++++++++++ app/Template/password_reset/email.php | 6 ++++++ 3 files changed, 39 insertions(+) create mode 100644 app/Template/password_reset/change.php create mode 100644 app/Template/password_reset/create.php create mode 100644 app/Template/password_reset/email.php (limited to 'app/Template/password_reset') diff --git a/app/Template/password_reset/change.php b/app/Template/password_reset/change.php new file mode 100644 index 00000000..310f0f97 --- /dev/null +++ b/app/Template/password_reset/change.php @@ -0,0 +1,16 @@ +
+

+
+ form->csrf() ?> + + form->label(t('New password'), 'password') ?> + form->password('password', $values, $errors) ?>
+ + form->label(t('Confirmation'), 'confirmation') ?> + form->password('confirmation', $values, $errors) ?> + +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/password_reset/create.php b/app/Template/password_reset/create.php new file mode 100644 index 00000000..ef958011 --- /dev/null +++ b/app/Template/password_reset/create.php @@ -0,0 +1,17 @@ +
+

+
+ form->csrf() ?> + + form->label(t('Username'), 'username') ?> + form->text('username', $values, $errors, array('autofocus', 'required')) ?> + + form->label(t('Enter the text below'), 'captcha') ?> + + form->text('captcha', array(), $errors, array('required')) ?> + +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/password_reset/email.php b/app/Template/password_reset/email.php new file mode 100644 index 00000000..62788b49 --- /dev/null +++ b/app/Template/password_reset/email.php @@ -0,0 +1,6 @@ +

+ +

url->to('PasswordReset', 'change', array('token' => $token), '', true) ?>

+ +
+Kanboard \ No newline at end of file -- cgit v1.2.3