Skip to content

Commit

Permalink
mnet: MDL-18758 check user_not_fully_set_up before creating user reco…
Browse files Browse the repository at this point in the history
…rd in auth/mnet
  • Loading branch information
Penny Leach committed Jan 12, 2010
1 parent 47c18e9 commit aa80271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions auth/mnet/auth.php
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lang/en_utf8/mnet.php
Expand Up @@ -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 <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 .';
Expand Down

0 comments on commit aa80271

Please sign in to comment.