Skip to content
Snippets Groups Projects
Commit 09d16332 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #31341 by kbahey: delete a user's session when the user is deleted.

parent a1a7f3fb
No related branches found
No related tags found
No related merge requests found
......@@ -1162,6 +1162,7 @@ function user_edit($category = 'account') {
menu_set_location($breadcrumb);
if ($edit['confirm']) {
db_query('DELETE FROM {users} WHERE uid = %d', $account->uid);
db_query('DELETE FROM {sessions} WHERE uid = %d', $account->uid);
db_query('DELETE FROM {users_roles} WHERE uid = %d', $account->uid);
db_query('DELETE FROM {authmap} WHERE uid = %d', $account->uid);
drupal_set_message(t('The account has been deleted.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment