mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
5c159cb309
commit
d48a52ddb1
5 changed files with 47 additions and 2 deletions
|
@ -70,6 +70,7 @@ class external_backpacks_page implements \renderable {
|
|||
}
|
||||
$data->backpacks[] = $backpack;
|
||||
}
|
||||
$data->warning = badges_verify_site_backpack();
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
{
|
||||
"backpacks": [
|
||||
{"backpackweburl": "http://localhost/", "sitebackpack": true, "canedit": false}
|
||||
]
|
||||
],
|
||||
"warning": "<span class='text-warning'>Could not login</span>"
|
||||
}
|
||||
}}
|
||||
<table class="generaltable fullwidth">
|
||||
|
@ -54,3 +55,4 @@
|
|||
{{/backpacks}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{{warning}}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue