Browse Source

updated Controllers Login & Logout & updated View Home

v3-dev
REJack 6 years ago
parent
commit
172034dda5
No known key found for this signature in database
GPG Key ID: 4A44B48700429F46
  1. 2
      application/Controllers/Account/Login.php
  2. 2
      application/Controllers/Account/Logout.php
  3. 0
      application/Database/Migrations/.gitkeep
  4. 5
      application/Views/Home.php

2
application/Controllers/Account/Login.php

@ -57,7 +57,7 @@ class Login extends Controller
}
else
{
redirect()->to('/account');
$this->response->redirect('/account');
}
}

2
application/Controllers/Account/Logout.php

@ -44,6 +44,6 @@ class Logout extends Controller
public function index()
{
$this->aauth->logout();
redirect()->to('/');
$this->response->redirect('/');
}
}

0
application/Database/Migrations/.gitkeep

5
application/Views/Home.php

@ -1,4 +1,9 @@
<h1 class="mb-5">Welcome To CodeIgniter-Aauth v3 for CodeIgniter 4.x</h1>
<p class="lead">Aauth is a User Authorization Library for CodeIgniter 4.x, which aims to make easy some essential jobs such as login, permissions and access operations. Despite ease of use, it has also very advanced features like groupping, access management, public access etc..</p>
<? if(is_loggedin()): ?>
<p>You are logged in.</p>
<a href="<?= site_url('account') ?>" class="btn btn-primary px-5">Account Details</a>
<? else: ?>
<p>You can Login now and test it.</p>
<a href="<?= site_url('account/login') ?>" class="btn btn-primary px-5">Login</a>
<? endif; ?>

Loading…
Cancel
Save