mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
auth/mnet: when landing, user complete_user_login()
By using complete_user_login() we ensure that the session is fully setup, and that enrolment plugins are called correctly.
This commit is contained in:
parent
8f9e1d2c4d
commit
be41678c5e
@ -33,7 +33,7 @@ $localuser = $mnetauth->confirm_mnet_session($token, $remotewwwroot);
|
|||||||
|
|
||||||
// log in
|
// log in
|
||||||
$USER = get_complete_user_data('id', $localuser->id, $localuser->mnethostid);
|
$USER = get_complete_user_data('id', $localuser->id, $localuser->mnethostid);
|
||||||
load_all_capabilities();
|
complete_user_login($USER);
|
||||||
|
|
||||||
if (!empty($localuser->mnet_foreign_host_array)) {
|
if (!empty($localuser->mnet_foreign_host_array)) {
|
||||||
$USER->mnet_foreign_host_array = $localuser->mnet_foreign_host_array;
|
$USER->mnet_foreign_host_array = $localuser->mnet_foreign_host_array;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user