From ede1f1d9b0c06a05845f4125d59c97c29b6d9842 Mon Sep 17 00:00:00 2001 From: Frederic Guillot <fred@kanboard.net> Date: Thu, 16 Jul 2015 20:35:56 -0400 Subject: Refactoring of Github authentication (oauth url change) --- app/Template/auth/index.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'app/Template/auth') diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php index ed923f07..9dcdfa37 100644 --- a/app/Template/auth/index.php +++ b/app/Template/auth/index.php @@ -16,12 +16,16 @@ <?= $this->form->checkbox('remember_me', t('Remember Me'), 1, true) ?><br/> - <?php if (GOOGLE_AUTH): ?> - <?= $this->url->link(t('Login with my Google Account'), 'oauth', 'google') ?> - <?php endif ?> - - <?php if (GITHUB_AUTH): ?> - <?= $this->url->link(t('Login with my GitHub Account'), 'user', 'gitHub') ?> + <?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"> -- cgit v1.2.3