]> git.mjollnir.org Git - moodle.git/commitdiff
auth/mnet: when landing, user complete_user_login()
authormartinlanghoff <martinlanghoff>
Wed, 14 Nov 2007 22:04:23 +0000 (22:04 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 14 Nov 2007 22:04:23 +0000 (22:04 +0000)
By using complete_user_login() we ensure that the session is fully
setup, and that enrolment plugins are called correctly.

auth/mnet/land.php

index 905119adf5e9f4a0052d03a16ad1dcd9c05b020e..82ddd167c7eb92f6d57aaffaed21212b695d63a2 100644 (file)
@@ -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;