MDL-45645 mod_lti Add custom LTI request parameter ext_user_username
authorSam Chaffee <sam@moodlerooms.com>
Tue, 20 May 2014 21:34:21 +0000 (15:34 -0600)
committerSam Chaffee <sam@moodlerooms.com>
Tue, 20 May 2014 21:34:21 +0000 (15:34 -0600)
mod/lti/locallib.php

index bb50e8b..ff76097 100644 (file)
@@ -280,6 +280,7 @@ function lti_build_request($instance, $typeconfig, $course) {
         $requestparams['lis_person_name_given'] =  $USER->firstname;
         $requestparams['lis_person_name_family'] =  $USER->lastname;
         $requestparams['lis_person_name_full'] =  $USER->firstname." ".$USER->lastname;
         $requestparams['lis_person_name_given'] =  $USER->firstname;
         $requestparams['lis_person_name_family'] =  $USER->lastname;
         $requestparams['lis_person_name_full'] =  $USER->firstname." ".$USER->lastname;
+        $requestparams['ext_user_username'] = $USER->username;
     }
 
     if ( $typeconfig['sendemailaddr'] == LTI_SETTING_ALWAYS ||
     }
 
     if ( $typeconfig['sendemailaddr'] == LTI_SETTING_ALWAYS ||