|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
* |
|
|
|
|
* @copyright 2014-2016 Emre Akay |
|
|
|
|
* |
|
|
|
|
* @version 2.5.5 |
|
|
|
|
* @version 2.5.6 |
|
|
|
|
* |
|
|
|
|
* @license LGPL |
|
|
|
|
* @license http://opensource.org/licenses/LGPL-3.0 Lesser GNU Public License |
|
|
|
@ -518,6 +518,10 @@ class Aauth {
|
|
|
|
|
$this->aauth_db->where('email', $email); |
|
|
|
|
$this->aauth_db->update($this->config_vars['users'], $data); |
|
|
|
|
|
|
|
|
|
if(is_array($this->config_vars['email_config'])){ |
|
|
|
|
$this->CI->email->initialize($this->config_vars['email_config']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
|
|
|
|
$this->CI->email->to($row->email); |
|
|
|
|
$this->CI->email->subject($this->CI->lang->line('aauth_email_reset_subject')); |
|
|
|
@ -560,6 +564,10 @@ class Aauth {
|
|
|
|
|
$this->aauth_db->where('id', $row->id); |
|
|
|
|
$this->aauth_db->update($this->config_vars['users'] , $data); |
|
|
|
|
|
|
|
|
|
if(is_array($this->config_vars['email_config'])){ |
|
|
|
|
$this->CI->email->initialize($this->config_vars['email_config']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
|
|
|
|
$this->CI->email->to($email); |
|
|
|
|
$this->CI->email->subject($this->CI->lang->line('aauth_email_reset_success_subject')); |
|
|
|
@ -944,6 +952,10 @@ class Aauth {
|
|
|
|
|
$this->aauth_db->where('id', $user_id); |
|
|
|
|
$this->aauth_db->update($this->config_vars['users'], $data); |
|
|
|
|
|
|
|
|
|
if(is_array($this->config_vars['email_config'])){ |
|
|
|
|
$this->CI->email->initialize($this->config_vars['email_config']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
|
|
|
|
$this->CI->email->to($row->email); |
|
|
|
|
$this->CI->email->subject($this->CI->lang->line('aauth_email_verification_subject')); |
|
|
|
|