MDL-87194 tool_mobile: Fix subscription requests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user