diff --git a/.gitignore b/.gitignore
index 1e32193..63ec819 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,8 +2,11 @@
.env
-public/
-!public/assets/
+public/.htaccess
+public/favicon.ico
+public/index.php
+public/robots.txt
+
system/
tests/
vendor/
diff --git a/application/Controllers/Account/Login.php b/application/Controllers/Account/Login.php
new file mode 100644
index 0000000..8615659
--- /dev/null
+++ b/application/Controllers/Account/Login.php
@@ -0,0 +1,73 @@
+config = new AauthConfig();
+ $this->aauth = new Aauth();
+ $this->request = Services::request();
+ helper('form');
+ }
+
+ /**
+ * Index
+ *
+ * @return redirect
+ */
+ public function index()
+ {
+ if ($input = $this->request->getVar())
+ {
+ $identifier = ($this->config->loginUseUsername ? $input['username'] : $input['email']);
+
+ if (! $this->aauth->login($identifier, $input['password'], (isset($input['remember']) ? true : false)))
+ {
+ $data['errors'] = $this->aauth->printErrors('
', true);
+ }
+ else
+ {
+ return redirect()->to('/account');
+ }
+ }
+
+ $data['useUsername'] = $this->config->loginUseUsername;
+ $data['cssFiles'] = [
+ '/assets/css/login.css'
+ ];
+
+ echo view('Templates/HeaderBlank', $data);
+ echo view('Account/Login', $data);
+ echo view('Templates/FooterBlank', $data);
+ }
+}
diff --git a/application/Controllers/Account/Register.php b/application/Controllers/Account/Register.php
new file mode 100644
index 0000000..5c88fd4
--- /dev/null
+++ b/application/Controllers/Account/Register.php
@@ -0,0 +1,72 @@
+config = new AauthConfig();
+ $this->aauth = new Aauth();
+ $this->request = Services::request();
+ helper('form');
+ }
+
+ /**
+ * Index
+ *
+ * @return void
+ */
+ public function index()
+ {
+ if ($input = $this->request->getVar())
+ {
+ if (! $this->aauth->createUser($input['email'], $input['password'], $input['username']))
+ {
+ $data['errors'] = $this->aauth->printErrors('
', true);
+ }
+ else
+ {
+ $data['info'] = $this->aauth->printInfos('
', true);
+ }
+ }
+
+ $data['useUsername'] = $this->config->loginUseUsername;
+ $data['cssFiles'] = [
+ '/assets/css/login.css'
+ ];
+
+ echo view('Templates/HeaderBlank', $data);
+ echo view('Account/Register', $data);
+ echo view('Templates/FooterBlank', $data);
+ }
+}
diff --git a/application/Controllers/Home.php b/application/Controllers/Home.php
index 4ce27c2..89976d6 100644
--- a/application/Controllers/Home.php
+++ b/application/Controllers/Home.php
@@ -1,13 +1,41 @@
+
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..
+You can Login now and test it.
+ Login +