Skip to content

Commit

Permalink
MDL-63748 core_auth: Fix redirect parameter being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Nov 2, 2018
1 parent 7daf207 commit 8396ade
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions login/confirm.php
Expand Up @@ -79,6 +79,14 @@
complete_user_login($user);

\core\session\manager::apply_concurrent_login_limit($user->id, session_id());

// Check where to go, $redirect has a higher preference.
if (!empty($redirect)) {
if (!empty($SESSION->wantsurl)) {
unset($SESSION->wantsurl);
}
redirect($redirect);
}
}

$PAGE->navbar->add(get_string("confirmed"));
Expand Down

0 comments on commit 8396ade

Please sign in to comment.