summaryrefslogtreecommitdiff
path: root/app/Template/auth
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-16 21:06:47 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-16 21:06:47 -0400
commitb0ac2013402001408a9cf35a7fa6c91bf224d287 (patch)
tree5303836f54eee503fcfe7822d8cc25230312b4ff /app/Template/auth
parent94068019db4ec74e0e2a9550aabf9ca8b0087455 (diff)
Add config parameter to hide login form
Diffstat (limited to 'app/Template/auth')
-rw-r--r--app/Template/auth/index.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php
index 9dcdfa37..6f4d93cc 100644
--- a/app/Template/auth/index.php
+++ b/app/Template/auth/index.php
@@ -4,6 +4,7 @@
<p class="alert alert-error"><?= $this->e($errors['login']) ?></p>
<?php endif ?>
+ <?php if (! HIDE_LOGIN_FORM): ?>
<form method="post" action="<?= $this->url->href('auth', 'check', array('redirect_query' => $redirect_query)) ?>">
<?= $this->form->csrf() ?>
@@ -16,21 +17,24 @@
<?= $this->form->checkbox('remember_me', t('Remember Me'), 1, true) ?><br/>
- <?php if (GOOGLE_AUTH || GITHUB_AUTH): ?>
- <ul>
- <?php if (GOOGLE_AUTH): ?>
- <li><?= $this->url->link(t('Login with my Google Account'), 'oauth', 'google') ?></li>
- <?php endif ?>
- <?php if (GITHUB_AUTH): ?>
- <li><?= $this->url->link(t('Login with my Github Account'), 'oauth', 'gitHub') ?></li>
- <?php endif ?>
- </ul>
- <?php endif ?>
<div class="form-actions">
<input type="submit" value="<?= t('Sign in') ?>" class="btn btn-blue"/>
</div>
</form>
+ <?php endif ?>
+
+ <?php if (GOOGLE_AUTH || GITHUB_AUTH): ?>
+ <ul class="no-bullet">
+ <?php if (GOOGLE_AUTH): ?>
+ <li><?= $this->url->link(t('Login with my Google Account'), 'oauth', 'google') ?></li>
+ <?php endif ?>
+
+ <?php if (GITHUB_AUTH): ?>
+ <li><?= $this->url->link(t('Login with my Github Account'), 'oauth', 'gitHub') ?></li>
+ <?php endif ?>
+ </ul>
+ <?php endif ?>
</div> \ No newline at end of file