diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 84240166a6344..6bf969f3f3d17 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -283,6 +283,11 @@ function confirm_mnet_session($token, $remotewwwroot) { exit; } + if (user_not_fully_set_up($remoteuser)) { + print_error('notenoughidpinfo', 'mnet'); + exit; + } + $firsttime = false; // get the local record for the remote user diff --git a/lang/en_utf8/mnet.php b/lang/en_utf8/mnet.php index ec8751b66697e..2a380779e368c 100644 --- a/lang/en_utf8/mnet.php +++ b/lang/en_utf8/mnet.php @@ -217,6 +217,7 @@ $string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.'; $string['unknownerror'] = 'Unknown error occurred during negotiation.'; $string['nolocaluser'] = 'No local record exists for remote user, and it could not be created, as this host will not auto create users. Please contact your administrator!'; +$string['notenoughidpinfo'] = 'Your identity provider is not giving us enough information to create your account locally. Sorry!'; $string['databaseerror'] = 'Could not write details to the database.'; $string['ssoacldescr'] = 'Use this page to grant/deny access to specific users from remote Moodle Network hosts. This is functional when you are offering SSO services to remote users. To control your local users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the mnetlogintoremote capability.'; $string['ssoaclneeds'] = 'For this functionality to work, you must have Moodle Networking On, plus the Moodle Network authentication plugin enabled with auto-add users enabled .';