diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index 71f6e9abd39..448d6004244 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -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);