From 7eab74ba771e5bbcd6e9812b01cb8b1f90ed7970 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Wed, 14 Jun 2023 20:17:37 +0530 Subject: [PATCH] susee --- app/Config/Routes.php | 4 ++-- app/Controllers/PaymentController.php | 2 +- app/Controllers/Sendmail_controller.php | 6 ++--- app/Views/cart.php | 2 +- app/Views/changepassword.php | 3 ++- app/Views/member_form.php | 2 +- app/Views/member_layout/header.php | 30 ++++++++++++------------- app/Views/memberaccess.php | 14 ++++++------ app/Views/myaccount.php | 6 ++--- app/Views/user_form.php | 2 +- app/Views/verification_mail_temp.php | 3 ++- 11 files changed, 38 insertions(+), 36 deletions(-) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 0945436..728121f 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -119,9 +119,9 @@ $routes->match(['get','post'],'/verify_update_email/(:any)','Sendmail_controller $routes->match(['get','post'],'/membership','Cart_controller::index'); $routes->match(['get','post'],'/add_package_cartdata','Cart_controller::add_package_cartdata'); $routes->match(['get','post'],'/view_cart/(:any)','Cart_controller::view_cart/$1'); -$routes->match(['get','post'],'/continue_shopping/(:any)','Cart_controller::continue_shopping/$1'); +$routes->match(['get','post'],'/membership/(:any)','Cart_controller::continue_shopping/$1'); -$routes->match(['get','post'],'/continue_membership/(:any)','Cart_controller::continue_shopping/$1'); +// $routes->match(['get','post'],'/continue_membership/(:any)','Cart_controller::continue_shopping/$1'); $routes->match(['get','post'],'/remove_product/(:any)','Cart_controller::remove_product/$1'); diff --git a/app/Controllers/PaymentController.php b/app/Controllers/PaymentController.php index 73d67fb..ef67bb8 100644 --- a/app/Controllers/PaymentController.php +++ b/app/Controllers/PaymentController.php @@ -681,7 +681,7 @@ class PaymentController extends BaseController $sendmail_controller = new Sendmail_controller(); - $mail = $sendmail_controller->index(session()->get('logged_user_email') , null , 5); + $mail = $sendmail_controller->index(session()->get('logged_user_email') , $local_order_id , 5); if($mail == true){ diff --git a/app/Controllers/Sendmail_controller.php b/app/Controllers/Sendmail_controller.php index 3331fbc..2d173fd 100644 --- a/app/Controllers/Sendmail_controller.php +++ b/app/Controllers/Sendmail_controller.php @@ -446,7 +446,7 @@ class Sendmail_controller extends BaseController //print_r($user_data);die(); - if($user_data[0]['is_email_verified'] == 0 || $user_data[0]['password'] == '') + if($user_data[0]['is_email_verified'] == 0) { @@ -485,8 +485,8 @@ class Sendmail_controller extends BaseController // Show error message // echo 'Email already verified.'; - $this->session->setTempdata('mail_success', "Mail already verified, Please login",3); - return redirect()->to(base_url()); + + return redirect()->to(base_url()."set_password/".md5($user_data[0]['id'])); } diff --git a/app/Views/cart.php b/app/Views/cart.php index 03d9682..97ebfe4 100644 --- a/app/Views/cart.php +++ b/app/Views/cart.php @@ -136,7 +136,7 @@ } ?>
- Continue Shopping + Continue Shopping
diff --git a/app/Views/changepassword.php b/app/Views/changepassword.php index 5bd3f0e..6964504 100644 --- a/app/Views/changepassword.php +++ b/app/Views/changepassword.php @@ -62,7 +62,8 @@ pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters" placeholder="Enter password" name="password" required> - + + Must contain at least one number and one uppercase and one special character like !@#$%^&*() and lowercase letter, and at least 8 or more characters
diff --git a/app/Views/member_form.php b/app/Views/member_form.php index 6d8b29b..ffa00c7 100644 --- a/app/Views/member_form.php +++ b/app/Views/member_form.php @@ -50,7 +50,7 @@
- +
diff --git a/app/Views/member_layout/header.php b/app/Views/member_layout/header.php index 5a92f70..70ee0ea 100644 --- a/app/Views/member_layout/header.php +++ b/app/Views/member_layout/header.php @@ -10,7 +10,7 @@
@@ -158,14 +158,14 @@ $value) { ?> "> # - format('M-d-Y'); ?> + format('M d , Y'); ?> $ ">
" class="fa fa-caret-down" aria-hidden="true">
@@ -81,6 +81,7 @@ bgcolor="#f6f6f6"> style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top"> Username :
Password : + Please login by clicking the link below.