Commit bd634c92 authored by Nigel McNie's avatar Nigel McNie
Browse files

[#2319] Rename a user when they are deleted, which allows the username to be reused.

parent e9e4c569
......@@ -649,6 +649,7 @@ function delete_user($userid) {
$deleterec = new StdClass;
$deleterec->id = $userid;
$deleterec->username = get_field('usr', 'username', 'id', $userid) . '.deleted.' . time();
$deleterec->deleted = 1;
$deleterec->email = get_field('usr', 'email', 'id', $userid) . $emailsuffix;
......
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