mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-63748 core_auth: Fix redirect parameter being ignored
This commit is contained in:
parent
d1d7d1396a
commit
d9714b1ff9
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue