mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-73256 tool_oauth2: save requireconfirmation property on create.
This commit is contained in:
parent
51149a78cc
commit
f6ab7c95b8
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@ if ($mform && $mform->is_cancelled()) {
|
|||
} else if ($action == 'savetemplate') {
|
||||
|
||||
$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()) {
|
||||
redirect(new moodle_url('/admin/tool/oauth2/issuers.php'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue