diff --git a/www/pr.php b/www/pr.php index b6442df..2a728fc 100644 --- a/www/pr.php +++ b/www/pr.php @@ -33,6 +33,7 @@ if (json_last_error() !== JSON_ERROR_NONE) { } if($decoded['secret'] != $secret_key['pr']) { + echo("WRONG SECRET"); error_log('FAILED - wrong secret key'); exit(); } @@ -54,7 +55,6 @@ $message = $decoded['sender']['login'] foreach($recipients['pr'] as $recp) { mail($recp, $subject, $message, $from); } - +echo("SENT"); // success, do something ?> -Nothing to see here.