aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-03-22 14:56:23 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-03-22 14:56:23 +0100
commitd5a6e7b1767ebc337f31745984f1ce0904b77780 (patch)
tree29355722fb8a3e993884e852a254277c80e90de4 /mod/register.php
parente193091dfe348c5430c3a303947dbe7a6eced374 (diff)
parent622b25df5f2d1ab21c9e23047bc0c98bfe72bad0 (diff)
downloadvolse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.tar.gz
volse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.tar.bz2
volse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.zip
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'mod/register.php')
-rwxr-xr-xmod/register.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 388b3e250..6d0e2700b 100755
--- a/mod/register.php
+++ b/mod/register.php
@@ -150,6 +150,16 @@ function register_post(&$a) {
if(count($r))
$err .= t('Nickname is already registered. Please choose another.') . EOL;
+ // Check deleted accounts that had this nickname. Doesn't matter to us,
+ // but could be a security issue for federated platforms.
+
+ $r = q("SELECT * FROM `userd`
+ WHERE `username` = '%s' LIMIT 1",
+ dbesc($nickname)
+ );
+ if(count($r))
+ $err .= t('Nickname was once registered here and may not be re-used. Please choose another.') . EOL;
+
if(strlen($err)) {
notice( $err );
return;