Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
bd634c92
Commit
bd634c92
authored
Sep 12, 2008
by
Nigel McNie
Browse files
[#2319] Rename a user when they are deleted, which allows the username to be reused.
parent
e9e4c569
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
bd634c92
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment