summaryrefslogtreecommitdiff
path: root/app/Template/user/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/user/login.php')
-rw-r--r--app/Template/user/login.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Template/user/login.php b/app/Template/user/login.php
new file mode 100644
index 00000000..fea44a01
--- /dev/null
+++ b/app/Template/user/login.php
@@ -0,0 +1,32 @@
+<div class="form-login">
+
+ <?php if (isset($errors['login'])): ?>
+ <p class="alert alert-error"><?= Helper\escape($errors['login']) ?></p>
+ <?php endif ?>
+
+ <form method="post" action="<?= Helper\u('user', 'check', array('redirect_query' => urlencode($redirect_query))) ?>">
+
+ <?= Helper\form_csrf() ?>
+
+ <?= Helper\form_label(t('Username'), 'username') ?>
+ <?= Helper\form_text('username', $values, $errors, array('autofocus', 'required')) ?><br/>
+
+ <?= Helper\form_label(t('Password'), 'password') ?>
+ <?= Helper\form_password('password', $values, $errors, array('required')) ?>
+
+ <?= Helper\form_checkbox('remember_me', t('Remember Me'), 1) ?><br/>
+
+ <?php if (GOOGLE_AUTH): ?>
+ <?= Helper\a(t('Login with my Google Account'), 'user', 'google') ?>
+ <?php endif ?>
+
+ <?php if (GITHUB_AUTH): ?>
+ <?= Helper\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