$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 or update your account locally. Sorry!';
+$string['usernotfullysetup'] = 'Your user account is incomplete. You need to go <a href=\"$a\">back to your provider</a> and ensure your profile is completed there. You may need to log out and in again for this to take effect.';
$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 .';
// remote users cannot be edited
if (is_mnet_remote_user($user)) {
+ if (user_not_fully_set_up($user)) {
+ $hostwwwroot = $DB->get_field('mnet_host', 'wwwroot', array('id'=>$user->mnethostid));
+ print_error('usernotfullysetup', 'mnet', '', $hostwwwroot);
+ }
redirect($CFG->wwwroot . "/user/view.php?course={$course->id}");
}