MDL-87194 message_airnotifier: Fix access key requests

This commit is contained in:
Albert Gasset
2025-11-14 16:16:10 +01:00
parent 982a10e9cf
commit 0d5409bc3d
@@ -135,12 +135,12 @@ class message_airnotifier_manager {
$curl->setHeader($header);
// Site ids are stored as secrets in md5 in the Moodle public hub.
$params = array(
$params = [
'url' => $CFG->wwwroot,
'siteid' => md5($CFG->siteidentifier),
'siteid' => md5(\core\hub\registration::get_secret()),
'contact' => $USER->email,
'description' => $CFG->wwwroot
);
'description' => $CFG->wwwroot,
];
$resp = $curl->post($serverurl, $params);
if ($key = json_decode($resp, true)) {