]> git.mxchange.org Git - friendica.git/commitdiff
remove first (space) last registration restriction due to confusion
authorFriendika <info@friendika.com>
Tue, 7 Dec 2010 12:44:34 +0000 (04:44 -0800)
committerFriendika <info@friendika.com>
Tue, 7 Dec 2010 12:44:34 +0000 (04:44 -0800)
this will increase spammers and bogus registrations dramatically(!)

mod/register.php

index 9f2f236b72809b02bd54ccec6f6e3bc3e19d159e..973c5447079efb567b7afec82a41aa340d8a853c 100644 (file)
@@ -71,14 +71,14 @@ function register_post(&$a) {
        // I don't really like having this rule, but it cuts down
        // on the number of auto-registrations by Russian spammers
        
-       $no_utf = get_config('system','no_utf');
+//     $no_utf = get_config('system','no_utf');
 
-       $pat = (($no_utf) ? '/^[a-zA-Z]* [a-zA-Z]*$/' : '/^\p{L}* \p{L}*$/u' ); 
+//     $pat = (($no_utf) ? '/^[a-zA-Z]* [a-zA-Z]*$/' : '/^\p{L}* \p{L}*$/u' ); 
 
-       $loose_reg = get_config('system','no_regfullname');
+//     $loose_reg = get_config('system','no_regfullname');
 
-       if((! $loose_reg) && (! preg_match($pat,$username)))
-               $err .= t('That doesn\'t appear to be your full name.') . EOL;
+//     if((! $loose_reg) && (! preg_match($pat,$username)))
+//             $err .= t('That doesn\'t appear to be your full name.') . EOL;
 
        if(! allowed_email($email))
                        $err .= t('Your email domain is not among those allowed on this site.') . EOL;