Login/logout->log in/log out

This commit is contained in:
Marcin Kurczewski 2013-10-06 18:50:06 +02:00
parent a8ef56d42c
commit 2ddc203fb8
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ class AuthController
*/
public function loginAction()
{
$this->context->subTitle = 'login form';
$this->context->subTitle = 'authentication form';
//check if already logged in
if ($this->context->loggedIn)

View file

@ -10,7 +10,7 @@
</div>
<div>
<input type="submit" value="Login">
<input type="submit" value="Log in"/>
</div>
</form>

View file

@ -30,13 +30,13 @@
if (!$this->context->loggedIn)
{
$postNav []= ['Login', \Chibi\UrlHelper::route('auth', 'login')];
$postNav []= ['Log in', \Chibi\UrlHelper::route('auth', 'login')];
$postNav []= ['Register', \Chibi\UrlHelper::route('auth', 'register')];
}
else
{
$postNav []= ['Account', \Chibi\UrlHelper::route('user', 'show', ['name' => $this->context->user->name])];
$postNav []= ['Logout', \Chibi\UrlHelper::route('auth', 'logout')];
$postNav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')];
}
function printNav($nav)