mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
mnet: MDL-21298 fixed a very unhelpful error message (and saved a db query)
this just modifies the nolocaluser string, rather than adding nolocaluser2 like I did in stable. Merged from MOODLE_19_STABLE
This commit is contained in:
parent
0d0842dc0e
commit
98dbda9590
@ -296,11 +296,9 @@ class auth_plugin_mnet extends auth_plugin_base {
|
|||||||
}
|
}
|
||||||
$remoteuser->mnethostid = $remotehost->id;
|
$remoteuser->mnethostid = $remotehost->id;
|
||||||
$remoteuser->firstaccess = time(); // First time user in this server, grab it here
|
$remoteuser->firstaccess = time(); // First time user in this server, grab it here
|
||||||
$DB->insert_record('user', $remoteuser);
|
$remoteuser->id = $DB->insert_record('user', $remoteuser);
|
||||||
$firsttime = true;
|
$firsttime = true;
|
||||||
if (! $localuser = $DB->get_record('user', array('username'=>$remoteuser->username, 'mnethostid'=>$remotehost->id))) {
|
$localuser = $remoteuser;
|
||||||
print_error('nolocaluser', 'mnet');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check sso access control list for permission first
|
// check sso access control list for permission first
|
||||||
|
@ -216,7 +216,7 @@ $string['authfail_usermismatch'] = 'Authorisation failed: the user does not matc
|
|||||||
$string['hostnotconfiguredforsso'] = 'This remote Moodle Hub is not configured for remote login.';
|
$string['hostnotconfiguredforsso'] = 'This remote Moodle Hub is not configured for remote login.';
|
||||||
$string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.';
|
$string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.';
|
||||||
$string['unknownerror'] = 'Unknown error occurred during negotiation.';
|
$string['unknownerror'] = 'Unknown error occurred during negotiation.';
|
||||||
$string['nolocaluser'] = 'No local record exists for remote user.';
|
$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['databaseerror'] = 'Could not write details to the database.';
|
$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['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 .';
|
$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 .';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user