mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Small change to allow the same user (by email) be deleted more than
once. Also some security in making deleted usernames very hard to guess.
This commit is contained in:
parent
e1e499e02c
commit
dfe952f2ea
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@
|
|||
exit;
|
||||
} else if (!$user->deleted) {
|
||||
$user->deleted = "1";
|
||||
$user->username = $user->email; // Remember it just in case
|
||||
$user->username = "$user->email.".time(); // Remember it just in case
|
||||
$user->email = ""; // Clear this field to free it up
|
||||
$user->timemodified = time();
|
||||
if (update_record("user", $user)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue