Remember Me: pickup the cookie prefix if one is there
这个提交包含在:
父节点
2c0e9b8c5d
当前提交
6120574bd3
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -892,8 +892,8 @@ class User extends CI_Controller {
|
||||||
$data['user'] = $query->row();
|
$data['user'] = $query->row();
|
||||||
|
|
||||||
// Read the cookie remeber_me and log the user in
|
// Read the cookie remeber_me and log the user in
|
||||||
if($this->input->cookie('remember_me')) {
|
if($this->input->cookie(config_item('cookie_prefix').'remember_me')) {
|
||||||
$encrypted_string = $this->input->cookie('remember_me');
|
$encrypted_string = $this->input->cookie(config_item('cookie_prefix').'remember_me');
|
||||||
$decrypted_string = $this->encrypt->decode($encrypted_string);
|
$decrypted_string = $this->encrypt->decode($encrypted_string);
|
||||||
$this->user_model->update_session($decrypted_string);
|
$this->user_model->update_session($decrypted_string);
|
||||||
$this->user_model->set_last_login($decrypted_string);
|
$this->user_model->set_last_login($decrypted_string);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用