Merge branch 'MDL-63748-master' of git://github.com/jleyva/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2018-11-05 13:11:17 +01:00
+8
View File
@@ -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"));