Skip to content

Commit aff8c1e

Browse files
committed
send email on account deletion request cancelled
1 parent c093943 commit aff8c1e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

resources/lib/UnityUser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ public function requestAccountDeletion(): void
384384
public function cancelRequestAccountDeletion(): void
385385
{
386386
$this->SQL->deleteAccountDeletionRequest($this->uid);
387+
$this->MAILER->sendMail("admin", "account_deletion_request_cancelled_admin", [
388+
"user" => $this->uid,
389+
"name" => $this->getFullname(),
390+
"email" => $this->getMail(),
391+
]);
387392
}
388393

389394
/**
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
$this->Subject = "Account Deletion Request Cancelled"; ?>
4+
5+
<p>Hello,</p>
6+
7+
<p>A user has cancelled their request for account deletion. User details are below:</p>
8+
9+
<p>
10+
<strong>Username</strong> <?php echo $data["user"]; ?>
11+
<br>
12+
<strong>Name</strong> <?php echo $data["name"]; ?>
13+
<br>
14+
<strong>Email</strong> <?php echo $data["email"]; ?>
15+
</p>

0 commit comments

Comments
 (0)