mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-63748 core_auth: Fix redirect parameter being ignored
This commit is contained in:
parent
d1d7d1396a
commit
d9714b1ff9
@ -79,6 +79,14 @@ if (!empty($data) || (!empty($p) && !empty($s))) {
|
||||
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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user