MDL-87194 tool_mobile: Fix subscription requests

This commit is contained in:
Albert Gasset
2025-11-14 16:17:03 +01:00
parent 6e173777e9
commit d0fdcd6528
+1 -1
View File
@@ -817,7 +817,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);