summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-11 18:05:10 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-11 18:05:10 -0400
commit7df055aff1e1056d87bb720531d60cb079805f94 (patch)
treeeee8f0b873ebdebc0d87fe7b835ce0f243e6a64e /app/Template
parentea9d402587d6fbcb39080a5d9a26e94ff4575443 (diff)
Add auth controller
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/auth/index.php (renamed from app/Template/user/login.php)2
-rw-r--r--app/Template/layout.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/user/login.php b/app/Template/auth/index.php
index c2e3914e..b35b1253 100644
--- a/app/Template/user/login.php
+++ b/app/Template/auth/index.php
@@ -4,7 +4,7 @@
<p class="alert alert-error"><?= $this->e($errors['login']) ?></p>
<?php endif ?>
- <form method="post" action="<?= $this->u('user', 'check', array('redirect_query' => urlencode($redirect_query))) ?>">
+ <form method="post" action="<?= $this->u('auth', 'check', array('redirect_query' => $redirect_query)) ?>">
<?= $this->formCsrf() ?>
diff --git a/app/Template/layout.php b/app/Template/layout.php
index ec9f2288..1cdcc249 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -58,7 +58,7 @@
</li>
<?php endif ?>
<li>
- <?= $this->a(t('Logout'), 'user', 'logout', array(), true) ?>
+ <?= $this->a(t('Logout'), 'auth', 'logout') ?>
<span class="username hide-tablet">(<?= $this->a($this->e($this->getFullname()), 'user', 'show', array('user_id' => $this->userSession->getId())) ?>)</span>
</li>
</ul>