Skip to content

Commit

Permalink
Fix de bug en la redirección (al loguearse con SAML) se perdían los p…
Browse files Browse the repository at this point in the history
…arámetros id y token.
  • Loading branch information
tanoinc committed Jun 18, 2019
1 parent 8fa2f5e commit 2700144
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions requestaccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ function miuniversidad_js_status($app, $status) {
return html_writer::script('if (typeof(Storage) !== "undefined") { localStorage.setItem("'.$app.'_status", "'.$status.'"); }');
}

$PAGE->set_url(new moodle_url('/message/output/miuniversidad/requestaccess.php'));
$id = required_param('id', PARAM_ALPHANUM); //Mi Universidad user hash id
$token = required_param('token', PARAM_ALPHANUM); // Mi Universidad token

$PAGE->set_url(new moodle_url('/message/output/miuniversidad/requestaccess.php', array('id' => $id, 'token' => $token) ));
$PAGE->set_context(context_system::instance());

require_login();


$id = required_param('id', PARAM_ALPHANUM); //Mi Universidad user hash id
$token = required_param('token', PARAM_ALPHANUM); // Mi Universidad token

$strheading = get_string('requestaccess', 'message_miuniversidad');
$PAGE->navbar->add(get_string('pluginname', 'message_miuniversidad'));
$PAGE->navbar->add($strheading);
Expand Down

0 comments on commit 2700144

Please sign in to comment.