Commit 2a287f39 authored by Nigel McNie's avatar Nigel McNie
Browse files

[#2991] Delete auth_remote_user records when deleting user accounts. Don't...

[#2991] Delete auth_remote_user records when deleting user accounts. Don't check for deletion when landing from SSO.
(cherry picked from commit e9e4c569)
parent f799bf02
......@@ -167,10 +167,6 @@ class AuthXmlrpc extends Auth {
$user->find_by_instanceid_username($this->instanceid, $remoteuser->username, true);
}
if ($user->get('deleted')) {
die_info(get_string('accountdeleted', 'mahara'));
}
if ($user->get('suspendedcusr')) {
die_info(get_string('accountsuspended', 'mahara', strftime(get_string('strftimedaydate'), $user->get('suspendedctime')), $user->get('suspendedreason')));
}
......
......@@ -682,6 +682,9 @@ function delete_user($userid) {
WHERE owner = ?
OR requester = ?', array($userid, $userid));
// Remove remote user records
delete_records('auth_remote_user', 'localusr', $userid);
db_commit();
handle_event('deleteuser', $userid);
......
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