Fix GH-100: account request notification shows email address (GH-101)

This commit is contained in:
Christoph M. Becker
2024-09-03 13:44:06 +02:00
committed by GitHub
parent ebc1d3af71
commit 3e0a9ccc5a

View File

@@ -125,11 +125,11 @@ if (isset($_POST['submit'])) {
";
$result = $database->run($sql, [$handle, $name, $email, $hash, $showemail ? 1 : 0, $homepage, $userinfo, gmdate('Y-m-d H:i')]);
$address = @$showemail ? $email : "(address hidden)";
$msg = "Requested from: {$_SERVER['REMOTE_ADDR']}\n".
"Username: {$handle}\n".
"Real Name: {$name}\n".
"Email: {$email}".
(@$showemail ? " (show address)" : " (hide address)") . "\n".
"Email: {$address}\n".
"Purpose:\n".
"$purpose\n\n".
'To handle: '.$container->get('scheme').'://'.$container->get('host')."/admin/?acreq={$handle}\n";