Skip to content
This repository has been archived by the owner on Sep 21, 2019. It is now read-only.
Permalink
Browse files Browse the repository at this point in the history
fix(auth): Send password reset emails to user's email stored in the db
  • Loading branch information
avramovic committed Apr 19, 2018
1 parent 005e0f8 commit 5e70496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iu-application/controllers/administration/auth.php
Expand Up @@ -263,7 +263,7 @@ public function remind()
$template = parse_template($template, $vars);

//send email
$this->email->to("$email");
$this->email->to($u->email);
$this->email->subject(__("%s password reset", Setting::value('website_title', CS_PRODUCT_NAME), 'email'));
$this->email->message($template);
$this->email->set_alt_message(strip_tags($template));
Expand Down Expand Up @@ -344,4 +344,4 @@ public function resetpass($id, $key)

}

?>
?>

0 comments on commit 5e70496

Please sign in to comment.