Skip to content

Commit

Permalink
Fixed issue: User creation email was sent by current admin, not by si…
Browse files Browse the repository at this point in the history
…teadmin
  • Loading branch information
c-schmitz committed Sep 13, 2022
1 parent f01abb2 commit 922fe36
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions application/models/services/PasswordManagement.php
Expand Up @@ -238,8 +238,6 @@ private function sendAdminMail($type = self::EMAIL_TYPE_REGISTRATION): \LimeMail

$emailType = "addadminuser";

$oCurrentlyLoggedInUser = \User::model()->findByPk(\Yii::app()->user->id);

$mailer = new \LimeMailer();
$mailer->addAddress($this->user->email, $this->user->full_name);
$mailer->Subject = $subject;
Expand Down

0 comments on commit 922fe36

Please sign in to comment.