diff --git a/JUNK/www/application/views/auth/view_register.php b/JUNK/www/application/views/auth/view_register.php index 364b203..4806b76 100644 --- a/JUNK/www/application/views/auth/view_register.php +++ b/JUNK/www/application/views/auth/view_register.php @@ -60,7 +60,7 @@ Login - Register + Register diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 4e774c9..37cb709 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -41,8 +41,8 @@ $routes->get('/contact', 'Home::contact'); $routes->get('/howitworks', 'Home::howitworks'); $routes->get('/auth', 'Home::login'); -$routes->get('/newuser', 'Home::login'); -$routes->get('/restpass', 'Home::login'); +$routes->get('/newuser', 'Home::newuser'); +$routes->get('/resetpass', 'Home::resetpass'); $routes->get('/tools', 'Tools::index'); diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 2b8f215..16f8c4e 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -40,6 +40,20 @@ class Home extends BaseController return view('home/login'); } + public function newuser() + { + return view('home/newuser'); + } + + public function resetpass() + { + $data = array(); + $data["next_page"] = 50; + $data["error_message"] = ""; + return view('home/resetpass', $data); + } + + public function howitworks() { return view('home/howitworks'); diff --git a/app/Views/home/newuser.php b/app/Views/home/newuser.php new file mode 100644 index 0000000..abef219 --- /dev/null +++ b/app/Views/home/newuser.php @@ -0,0 +1,82 @@ += $this->extend('layouts/loginlayout') ?> + += $this->section('content') ?> + + + + + + + + + + + + + + + + + + + + Create CoreGrade Account + + + Fill the below form to create a new account. + + + + + ' required> + Name + + + ' required> + Name + + + ' required> + Email + + + + Password + + + + + + + + + + + + + I accept the terms & conditions. + + + + + Login + Register + + + + + + + + + + + + + + += $this->endSection() ?> + diff --git a/app/Views/home/resetpass.php b/app/Views/home/resetpass.php new file mode 100644 index 0000000..1ae2e79 --- /dev/null +++ b/app/Views/home/resetpass.php @@ -0,0 +1,165 @@ += $this->extend('layouts/loginlayout') ?> + += $this->section('content') ?> + + + + + + + + + + + + + + + + + + + + + + Reset Password + + + + + + + if ($next_page == 50) { + ?> + Please tell us your username. + + + + Email + + + + if the account is valid, you will receive instruction in your email to continue the reset process. + + + + + = $error_message ?> + + + + Go Back to Login + + + Reset + + + + + + + Check your email = $username ?> for a link to continue this process. + + + + + The email will expire in a few minutes if you did not receive the password reset email, please contact us. + + + + = $error_message ?> + + + + + + Return Home + + + + + + + + + + + + + Username + + + + + Password + + + + + Confirm Password + + + = $error_message ?> + + + + Go Back to Login + + + Reset + + + + + + + Something went wrong + + + + + We have an error, it is possible that the link expired before you attempted the reset. Simply start the process again or contact us.. + + + + = $error_message ?> + + + + + + Return Home + + + + + + + + + + + + + + + + + + + + + + + += $this->endSection() ?> + +
Fill the below form to create a new account.
Please tell us your username.