From 6120574bd3d4751b56913444c1df4ef08264b903 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 1 May 2024 10:47:00 +0100 Subject: [PATCH] Remember Me: pickup the cookie prefix if one is there --- application/controllers/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/User.php b/application/controllers/User.php index ea219f8b..cbc605a2 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -892,8 +892,8 @@ class User extends CI_Controller { $data['user'] = $query->row(); // Read the cookie remeber_me and log the user in - if($this->input->cookie('remember_me')) { - $encrypted_string = $this->input->cookie('remember_me'); + if($this->input->cookie(config_item('cookie_prefix').'remember_me')) { + $encrypted_string = $this->input->cookie(config_item('cookie_prefix').'remember_me'); $decrypted_string = $this->encrypt->decode($encrypted_string); $this->user_model->update_session($decrypted_string); $this->user_model->set_last_login($decrypted_string);