mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01: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
@ -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…
x
Reference in New Issue
Block a user