MDL-65518 badges: Admin settings warning

If the backpack is changed to Open Badges V2 backpack,
attempt the authenticate with the site settings and return a warning
if it fails.
This commit is contained in:
Damyon Wiese 2019-05-08 13:25:07 +08:00
parent 5c159cb309
commit d48a52ddb1
5 changed files with 47 additions and 2 deletions

View file

@ -70,6 +70,7 @@ class external_backpacks_page implements \renderable {
}
$data->backpacks[] = $backpack;
}
$data->warning = badges_verify_site_backpack();
return $data;
}