]> git.mjollnir.org Git - moodle.git/commitdiff
mnet: MDL-18758 check user_not_fully_set_up before creating user record in auth...
authorPenny Leach <penny@liip.ch>
Tue, 12 Jan 2010 02:25:31 +0000 (02:25 +0000)
committerPenny Leach <penny@liip.ch>
Tue, 12 Jan 2010 02:25:31 +0000 (02:25 +0000)
auth/mnet/auth.php
lang/en_utf8/mnet.php

index 84240166a6344b0e5551715af184e7a0dcf8d4eb..6bf969f3f3d172108ff4b932402847ca8b9bde49 100644 (file)
@@ -283,6 +283,11 @@ class auth_plugin_mnet extends auth_plugin_base {
             exit;
         }
 
+        if (user_not_fully_set_up($remoteuser)) {
+            print_error('notenoughidpinfo', 'mnet');
+            exit;
+        }
+
         $firsttime = false;
 
         // get the local record for the remote user
index ec8751b66697efe40f665fc9919643403276d0cb..2a380779e368c2c20c6e91b607343675d9b4a02a 100644 (file)
@@ -217,6 +217,7 @@ $string['hostnotconfiguredforsso'] = 'This remote Moodle Hub is not configured f
 $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 <em>local</em> users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the <em>mnetlogintoremote</em> 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 .';