Skip to content

Commit bb23daa

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

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// This template is sent to admins when a new group is requested
4+
$this->Subject = "Account Deletion Request Cancelled"; ?>
5+
6+
<p>Hello,</p>
7+
8+
<p>A user has cancelled their request for account deletion. User details are below:</p>
9+
10+
<p>
11+
<strong>Username</strong> <?php echo $data["user"]; ?>
12+
<br>
13+
<strong>Name</strong> <?php echo $data["name"]; ?>
14+
<br>
15+
<strong>Email</strong> <?php echo $data["email"]; ?>
16+
</p>

0 commit comments

Comments
 (0)