mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-70242 auth_oauth2: set page context and url
This commit is contained in:
parent
f86b5e3545
commit
2c4426bb10
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ require_once('../../config.php');
|
|||
$issuerid = required_param('id', PARAM_INT);
|
||||
$wantsurl = new moodle_url(optional_param('wantsurl', '', PARAM_URL));
|
||||
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_url(new moodle_url('/auth/oauth2/login.php', ['id' => $issuerid]));
|
||||
|
||||
require_sesskey();
|
||||
|
||||
if (!\auth_oauth2\api::is_enabled()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue