MDL-87194 tool_mobile: Fix subscription requests

This commit is contained in:
Albert Gasset
2025-11-14 16:16:13 +01:00
parent 0d5409bc3d
commit 7d5825ef18
+1 -1
View File
@@ -820,7 +820,7 @@ class api {
$credentials[] = ['type' => 'airnotifieraccesskey', 'value' => $CFG->airnotifieraccesskey];
}
if (\core\hub\registration::is_registered()) {
$credentials[] = ['type' => 'siteid', 'value' => $CFG->siteidentifier];
$credentials[] = ['type' => 'siteid', 'value' => \core\hub\registration::get_secret()];
}
// Generate a hash key for validating that the request is coming from this site via WS.
$key = complex_random_string(32);