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:
martinlanghoff 2007-11-14 22:04:23 +00:00
parent 8f9e1d2c4d
commit be41678c5e

View 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;