Merge branch 'MDL-45645_LTIUsernameParam' of https://github.com/moodlerooms/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Jun 2014 23:28:35 +0000 (01:28 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Jun 2014 23:28:35 +0000 (01:28 +0200)
mod/lti/locallib.php

index 2bab6ba..bc1e413 100644 (file)
@@ -332,6 +332,7 @@ function lti_build_request($instance, $typeconfig, $course, $typeid = null) {
         $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 ||