Commit e9e4c569 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.
parent 16dc7a23
......@@ -166,10 +166,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')));
}
......
......@@ -689,6 +689,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);
......
Supports Markdown
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