mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
50 lines
No EOL
1.8 KiB
PHP
50 lines
No EOL
1.8 KiB
PHP
<div class="form-login">
|
|
|
|
<?php if (isset($errors['login'])): ?>
|
|
<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') ?>">
|
|
|
|
<?= $this->form->csrf() ?>
|
|
|
|
<?= $this->form->label(t('Username'), 'username') ?>
|
|
<?= $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 (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')) ?>
|
|
<?php endif ?>
|
|
|
|
<?php if (REMEMBER_ME_AUTH): ?>
|
|
<?= $this->form->checkbox('remember_me', t('Remember Me'), 1, true) ?><br/>
|
|
<?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 || 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>
|
|
<?php endif ?>
|
|
|
|
<?php if (GITLAB_AUTH): ?>
|
|
<li><?= $this->url->link(t('Login with my Gitlab Account'), 'oauth', 'gitlab') ?></li>
|
|
<?php endif ?>
|
|
</ul>
|
|
<?php endif ?>
|
|
|
|
</div>
|