Commit 7bad3beb 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.

(cherry picked from commit bd634c92)
parent 2a287f39
......@@ -650,6 +650,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