From: martinlanghoff <martinlanghoff> Date: Wed, 14 Nov 2007 22:04:23 +0000 (+0000) Subject: auth/mnet: when landing, user complete_user_login() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=be41678c5e391e39dd748ffcf5495b04dabda4d1;p=moodle.git 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. --- diff --git a/auth/mnet/land.php b/auth/mnet/land.php index 905119adf5..82ddd167c7 100644 --- a/auth/mnet/land.php +++ b/auth/mnet/land.php @@ -33,7 +33,7 @@ $localuser = $mnetauth->confirm_mnet_session($token, $remotewwwroot); // log in $USER = get_complete_user_data('id', $localuser->id, $localuser->mnethostid); -load_all_capabilities(); +complete_user_login($USER); if (!empty($localuser->mnet_foreign_host_array)) { $USER->mnet_foreign_host_array = $localuser->mnet_foreign_host_array;