Login/logout->log in/log out
This commit is contained in:
parent
a8ef56d42c
commit
2ddc203fb8
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="Login">
|
||||
<input type="submit" value="Log in"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue