Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ef4e66
)
MDL-70242 auth_oauth2: set page context and url
author
Marina Glancy
<marina@moodle.com>
Tue, 17 Nov 2020 15:47:12 +0000
(16:47 +0100)
committer
Marina Glancy
<marina@moodle.com>
Tue, 17 Nov 2020 15:47:12 +0000
(16:47 +0100)
auth/oauth2/login.php
patch
|
blob
|
blame
|
history
diff --git
a/auth/oauth2/login.php
b/auth/oauth2/login.php
index
5a9d7e8
..
9abb2a3
100644
(file)
--- a/
auth/oauth2/login.php
+++ b/
auth/oauth2/login.php
@@
-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()) {