From be41678c5e391e39dd748ffcf5495b04dabda4d1 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 14 Nov 2007 22:04:23 +0000 Subject: [PATCH] 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. --- auth/mnet/land.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5