]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_reg.php
Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index 17dd29b14850b779e6fc734f9886c68090a99990..757c9634159ad0d186c0579be0d4b2bea59d2153 100644 (file)
@@ -182,7 +182,7 @@ if (isFormSent()) {
                                $formErrors[] = '{--SPONSOR_PASSWORD2_EMPTY--}';
                        }
                }
-       } elseif (strlen(postRequestParameter('pass1')) < getConfig('pass_len')) {
+       } elseif (strlen(postRequestParameter('pass1')) < getPassLen()) {
                // Password is to short!
                $formErrors[] = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
        }
@@ -293,12 +293,12 @@ ORDER BY
                        $content['form_errors'] = $OUT;
 
                        // @TODO Maybe a default referal id?
-                       $content['refid']       = 0;
+                       $content['refid'] = 0;
 
                        // Is the referal id valid?
                        if ((isPostRequestParameterSet('refid')) && (isValidUserId(postRequestParameter('refid')))) {
                                // Transfer referal id
-                               $content['refid']       = bigintval(postRequestParameter('refid'));
+                               $content['refid'] = bigintval(postRequestParameter('refid'));
                        } // END - if
                } // END - if