Skip to content

Commit

Permalink
function remind_password: return TRUE/FALSE.
Browse files Browse the repository at this point in the history
This allows for the function to return true if the email sent. And false
if the email doesn't exist in the DB.
  • Loading branch information
ManeBit committed Jun 11, 2015
1 parent f971666 commit 1096ff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ public function reset_login_attempts($user_id) {
* Remind password
* Emails user with link to reset password
* @param string $email Email for account to remind
* @return bool Remind fails/succeeds
*/
public function remind_password($email){

Expand All @@ -457,7 +458,10 @@ public function remind_password($email){
$this->CI->email->subject($this->CI->lang->line('aauth_email_reset_subject'));
$this->CI->email->message($this->CI->lang->line('aauth_email_reset_text') . site_url() . $this->config_vars['reset_password_link'] . $row->id . '/' . $ver_code );
$this->CI->email->send();

return TRUE;
}
return FALSE;
}

/**
Expand Down

0 comments on commit 1096ff9

Please sign in to comment.