aboutsummaryrefslogtreecommitdiffstats
path: root/mod/regmod.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-22 01:46:52 -0700
committerfriendica <info@friendica.com>2012-03-22 01:46:52 -0700
commitebdf0ee99e517c6718099fda2f1b2288c42e66da (patch)
tree274a80868cf7a150ca701bbfc7ddb98152e2e42d /mod/regmod.php
parent576eb6cc389d54c29b29b97d3c6d160e61bbf6ca (diff)
downloadvolse-hubzilla-ebdf0ee99e517c6718099fda2f1b2288c42e66da.tar.gz
volse-hubzilla-ebdf0ee99e517c6718099fda2f1b2288c42e66da.tar.bz2
volse-hubzilla-ebdf0ee99e517c6718099fda2f1b2288c42e66da.zip
prevent re-registrations using a deleted username - not an issue with Friendica but could create a serious privacy issue with federated platforms
Diffstat (limited to 'mod/regmod.php')
-rwxr-xr-xmod/regmod.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/regmod.php b/mod/regmod.php
index 17e728ba2..21f41eb01 100755
--- a/mod/regmod.php
+++ b/mod/regmod.php
@@ -64,6 +64,11 @@ function user_allow($hash) {
}
+
+// This does not have to go through user_remove() and save the nickname
+// permanently against re-registration, as the person was not yet
+// allowed to have friends on this system
+
function user_deny($hash) {
$register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",