diff --git a/public/admin/tool/mobile/classes/api.php b/public/admin/tool/mobile/classes/api.php index 279b2a847e5..7fbc88f134d 100644 --- a/public/admin/tool/mobile/classes/api.php +++ b/public/admin/tool/mobile/classes/api.php @@ -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);