In the local_ltiprovider_populate function of locallib.php when a user is created but no email address or name is supplied this fails to fill out the user and instead redirects the moodle page to fill out the user's profile. Since this is used via the LTI service from other sites this should be able to create a use regardless. LTI documentation says that these fields do not need to be supplied if security settings override it. So the plugin should be able to support this.
You can fix it by changing lines 195-196 of locallib.php to:
In the
local_ltiprovider_populate
function oflocallib.php
when a user is created but no email address or name is supplied this fails to fill out the user and instead redirects the moodle page to fill out the user's profile. Since this is used via the LTI service from other sites this should be able to create a use regardless. LTI documentation says that these fields do not need to be supplied if security settings override it. So the plugin should be able to support this.You can fix it by changing lines 195-196 of
locallib.php
to:and then updating the
getUserEmail
function inblti.php
to:I was going to set a pull request but our fork of the plugin has other changes not really needed for the plugin.