Error msg
This commit is contained in:
parent
ed67c68a1a
commit
6fff0a53a1
@ -33,6 +33,7 @@ if (json_last_error() !== JSON_ERROR_NONE) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($decoded['secret'] != $secret_key['pr']) {
|
if($decoded['secret'] != $secret_key['pr']) {
|
||||||
|
echo("WRONG SECRET");
|
||||||
error_log('FAILED - wrong secret key');
|
error_log('FAILED - wrong secret key');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@ -54,7 +55,6 @@ $message = $decoded['sender']['login']
|
|||||||
foreach($recipients['pr'] as $recp) {
|
foreach($recipients['pr'] as $recp) {
|
||||||
mail($recp, $subject, $message, $from);
|
mail($recp, $subject, $message, $from);
|
||||||
}
|
}
|
||||||
|
echo("SENT");
|
||||||
// success, do something
|
// success, do something
|
||||||
?>
|
?>
|
||||||
Nothing to see here.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user