mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'MDL-27360' of git://github.com/mouneyrac/moodle
This commit is contained in:
commit
1208c6bb72
@ -3814,6 +3814,12 @@ function delete_user($user) {
|
||||
// last course access not necessary either
|
||||
$DB->delete_records('user_lastaccess', array('userid'=>$user->id));
|
||||
|
||||
// remove all user tokens
|
||||
$DB->delete_records('external_tokens', array('userid'=>$user->id));
|
||||
|
||||
// unauthorise the user for all services
|
||||
$DB->delete_records('external_services_users', array('userid'=>$user->id));
|
||||
|
||||
// force logout - may fail if file based sessions used, sorry
|
||||
session_kill_user($user->id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user