Error msg

This commit is contained in:
Bandie 2021-01-13 00:27:53 +01:00
parent ed67c68a1a
commit 6fff0a53a1
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312

View File

@ -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.