summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-01 12:14:22 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-01 12:14:22 -0400
commitdb88a00d48d1dce48b8700e460c06ff7fb344f0a (patch)
treecdb089f5aadcbd22aa63612d4d50bbe63fcbe112 /app/Template
parentdb69d5c429cf747e72c4ded26f3821e7f688bc13 (diff)
Add bruteforce protection
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/auth/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php
index ca303df9..efe95185 100644
--- a/app/Template/auth/index.php
+++ b/app/Template/auth/index.php
@@ -10,11 +10,17 @@
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Username'), 'username') ?>
- <?= $this->form->text('username', $values, $errors, array('autofocus', 'required')) ?><br/>
+ <?= $this->form->text('username', $values, $errors, array('autofocus', 'required')) ?>
<?= $this->form->label(t('Password'), 'password') ?>
<?= $this->form->password('password', $values, $errors, array('required')) ?>
+ <?php if ($captcha): ?>
+ <?= $this->form->label(t('Enter the text below'), 'captcha') ?>
+ <img src="<?= $this->url->href('auth', 'captcha') ?>"/>
+ <?= $this->form->text('captcha', $values, $errors, array('required')) ?>
+ <?php endif ?>
+
<?= $this->form->checkbox('remember_me', t('Remember Me'), 1, true) ?><br/>
<div class="form-actions">