Commit e98b352e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Skip checks of internal authinstances when auto-creating users (bug #850617)



Change-Id: I31b8d70169e3665167f50f06d07ce263b33464e5
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 077e5988
......@@ -1171,10 +1171,11 @@ function login_submit(Pieform $form, $values) {
$SESSION->destroy_session();
$USER = new LiveUser();
$authinstances = get_records_sql_array('
$authinstances = get_records_sql_array("
SELECT a.id, a.instancename, a.priority, a.authname, a.institution, i.suspended, i.displayname
FROM {institution} i JOIN {auth_instance} a ON a.institution = i.name
ORDER BY a.institution, a.priority, a.instancename', null);
WHERE a.authname != 'internal'
ORDER BY a.institution, a.priority, a.instancename", null);
if ($authinstances == false) {
throw new AuthUnknownUserException("\"$username\" is not known");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment