diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-23 13:15:59 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-23 13:15:59 -0400 |
commit | 8eb739bb910fb91737c6ce65f244eb9a3ac8f35c (patch) | |
tree | db615be44d945a8dc1880a1238a381ec6534dfa2 /app/Template/auth | |
parent | 297c11e48e1cf18e5773a7463721d862dfd6063d (diff) |
Add Gitlab authentication
Diffstat (limited to 'app/Template/auth')
-rw-r--r-- | app/Template/auth/index.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php index 1ad1b9a4..2ffc53cb 100644 --- a/app/Template/auth/index.php +++ b/app/Template/auth/index.php @@ -15,7 +15,7 @@ <?= $this->form->label(t('Password'), 'password') ?> <?= $this->form->password('password', $values, $errors, array('required')) ?> - <?php if ($captcha): ?> + <?php if (isset($captcha) && $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')) ?> @@ -31,14 +31,18 @@ </form> <?php endif ?> - <?php if (GOOGLE_AUTH || GITHUB_AUTH): ?> + <?php if (GOOGLE_AUTH || GITHUB_AUTH || GITLAB_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> + <li><?= $this->url->link(t('Login with my Github Account'), 'oauth', 'github') ?></li> + <?php endif ?> + + <?php if (GITLAB_AUTH): ?> + <li><?= $this->url->link(t('Login with my Gitlab Account'), 'oauth', 'gitlab') ?></li> <?php endif ?> </ul> <?php endif ?> |