If user signs in with parent auth method first, a duplicate account is created when they SSO in
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As described in this thread: http://
The solution, I think, is to insert a record into auth_remote_user when we are auto-creating a user who has a parent auth method.
The code for this is in login_submit. Perhaps it should go in the try/catch block around line 1230 of auth/lib.php:
try {
}
}
Something along the lines of
if (<db query to find authinstance(s?) with parent = $auth->id) {
// possibly a loop here if there's more than one - can there be more than one?
insert_
'
'
'localusr' => $USER->id
);
}
This bug was imported from eduforge.org, see:
https:/
Happening to more people now..