feat: add optional id parmeter
This commit is contained in:
parent
63e569c6ca
commit
70cdad532a
1 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
require_once('../../config.php');
|
||||
|
||||
$pmurl = optional_param('wantsurl',"/", PARAM_TEXT);
|
||||
$id = optional_param('id',"1", PARAM_TEXT);
|
||||
|
||||
$PAGE->set_url(new moodle_url('local/auto_oauth2/redirector.php'));
|
||||
|
||||
|
@ -9,5 +10,4 @@ $PAGE->set_context(\context_system::instance());
|
|||
|
||||
$PAGE->set_title("Redirect");
|
||||
|
||||
// id may need to be adjusted
|
||||
redirect($CFG->wwwroot.'/auth/oauth2/login.php?id=1&wantsurl='.$pmurl.'&sesskey='.sesskey());
|
||||
redirect($CFG->wwwroot.'/auth/oauth2/login.php?id='.$id.'&wantsurl='.$pmurl.'&sesskey='.sesskey());
|
Loading…
Add table
Add a link
Reference in a new issue