From 0ba0794197f51e73904894cc30005f7111f3cebe Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 19 Mar 2022 11:36:43 -0400 Subject: [PATCH] fix --- www/application/controllers/Vemail.php | 11 +-- .../views/site3/external/view_error.php | 64 ++++++++++++++ .../views/site3/external/view_vemail.php | 88 +++++++++++++++++++ 3 files changed, 156 insertions(+), 7 deletions(-) create mode 100644 www/application/views/site3/external/view_error.php create mode 100644 www/application/views/site3/external/view_vemail.php diff --git a/www/application/controllers/Vemail.php b/www/application/controllers/Vemail.php index 43ca4bb5..0b8f9274 100644 --- a/www/application/controllers/Vemail.php +++ b/www/application/controllers/Vemail.php @@ -8,7 +8,7 @@ class Vemail extends CI_Controller { $vlnk = NULL; $data['title'] = "Verify Email"; // Capitalize the first letter - $data['page_title'] = "About WrenchBoard"; + $data['page_title'] = "Verify Signup"; $data['email'] = "ameye@chiefsoft.com"; extract($_GET); @@ -28,12 +28,9 @@ class Vemail extends CI_Controller { $data['username'] = $ret->username; $res1 = $this->backend_model->wrenchboard_api($data, $out); if ($res1 > 0) { - $this->load->view('users/view_vemail', $data); + $this->load->view('site3/external/view_vemail', $data); + exit; } - - - - // make sure status is set to 5 : complete } // call backend to create the account now @@ -44,7 +41,7 @@ class Vemail extends CI_Controller { } // IF YOU GET HERE - ERROR PAGE // $this->load->view('templates/header_boxed', $data); - $this->load->view('users/view_error', $data); + $this->load->view('site3/external/view_error', $data); // $this->load->view('templates/footer_boxed', $data); } diff --git a/www/application/views/site3/external/view_error.php b/www/application/views/site3/external/view_error.php new file mode 100644 index 00000000..42b12d6e --- /dev/null +++ b/www/application/views/site3/external/view_error.php @@ -0,0 +1,64 @@ + + + + + + + + + + + + +
+ +
+ +
+ + + WrenchBoard + + + +
+ +
+ +
+ +

Invalid verification link

+ + +

+ +
+ + +
+ + + +
+ This error occurs because you have already verified this link or the link has expired. Try login or reset password. If none worked, try to create the account from the start. +
+ + + +
+ +
+ +
+ + +
+
+ + + + + + diff --git a/www/application/views/site3/external/view_vemail.php b/www/application/views/site3/external/view_vemail.php new file mode 100644 index 00000000..5dca7cd8 --- /dev/null +++ b/www/application/views/site3/external/view_vemail.php @@ -0,0 +1,88 @@ + + + + + + + + +
+
+
+ + WrenchBoard + +
+
+
+

Sign In to WrenchBoard

+
New Here? + Create an Account
+
+
+ + +
+
+
+ + Forgot Password ? +
+ +
+ +
+ + +
+
+ + +
+ +
or
+ + +
+ +
+ +
+ +
+ + + +
+
+ + + + + + +