MDL-73256 tool_oauth2: save requireconfirmation property on create.

This commit is contained in:
Paul Holden 2021-12-06 14:10:44 +00:00
parent 51149a78cc
commit f6ab7c95b8

View file

@ -104,7 +104,11 @@ if ($mform && $mform->is_cancelled()) {
} else if ($action == 'savetemplate') { } else if ($action == 'savetemplate') {
$type = required_param('type', PARAM_ALPHANUM); $type = required_param('type', PARAM_ALPHANUM);
$mform = new \tool_oauth2\form\issuer(null, ['persistent' => $issuer, 'type' => $type]); $mform = new \tool_oauth2\form\issuer(null, [
'persistent' => $issuer,
'type' => $type,
'showrequireconfirm' => true, // Ensure the "requireconfirmation" field is included in form data.
]);
if ($mform->is_cancelled()) { if ($mform->is_cancelled()) {
redirect(new moodle_url('/admin/tool/oauth2/issuers.php')); redirect(new moodle_url('/admin/tool/oauth2/issuers.php'));
} }