mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
prevent re-registrations using a deleted username - not an issue with Friendica but could create a serious privacy issue with federated platforms
This commit is contained in:
parent
576eb6cc38
commit
ebdf0ee99e
6 changed files with 38 additions and 2 deletions
|
@ -15,6 +15,12 @@ function user_remove($uid) {
|
|||
|
||||
call_hooks('remove_user',$r[0]);
|
||||
|
||||
// save username (actually the nickname as it is guaranteed
|
||||
// unique), so it cannot be re-registered in the future.
|
||||
|
||||
q("insert into userd ( username ) values ( '%s' )",
|
||||
$r[0]['nickname']
|
||||
);
|
||||
|
||||
q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid));
|
||||
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue