diff --git a/redirector.php b/redirector.php index 9241d59..39b7c5f 100644 --- a/redirector.php +++ b/redirector.php @@ -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()); \ No newline at end of file +redirect($CFG->wwwroot.'/auth/oauth2/login.php?id='.$id.'&wantsurl='.$pmurl.'&sesskey='.sesskey()); \ No newline at end of file