diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-11 18:05:10 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-11 18:05:10 -0400 |
commit | 7df055aff1e1056d87bb720531d60cb079805f94 (patch) | |
tree | eee8f0b873ebdebc0d87fe7b835ce0f243e6a64e /app/Template/auth | |
parent | ea9d402587d6fbcb39080a5d9a26e94ff4575443 (diff) |
Add auth controller
Diffstat (limited to 'app/Template/auth')
-rw-r--r-- | app/Template/auth/index.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php new file mode 100644 index 00000000..b35b1253 --- /dev/null +++ b/app/Template/auth/index.php @@ -0,0 +1,32 @@ +<div class="form-login"> + + <?php if (isset($errors['login'])): ?> + <p class="alert alert-error"><?= $this->e($errors['login']) ?></p> + <?php endif ?> + + <form method="post" action="<?= $this->u('auth', 'check', array('redirect_query' => $redirect_query)) ?>"> + + <?= $this->formCsrf() ?> + + <?= $this->formLabel(t('Username'), 'username') ?> + <?= $this->formText('username', $values, $errors, array('autofocus', 'required')) ?><br/> + + <?= $this->formLabel(t('Password'), 'password') ?> + <?= $this->formPassword('password', $values, $errors, array('required')) ?> + + <?= $this->formCheckbox('remember_me', t('Remember Me'), 1) ?><br/> + + <?php if (GOOGLE_AUTH): ?> + <?= $this->a(t('Login with my Google Account'), 'user', 'google') ?> + <?php endif ?> + + <?php if (GITHUB_AUTH): ?> + <?= $this->a(t('Login with my GitHub Account'), 'user', 'gitHub') ?> + <?php endif ?> + + <div class="form-actions"> + <input type="submit" value="<?= t('Sign in') ?>" class="btn btn-blue"/> + </div> + </form> + +</div>
\ No newline at end of file |