]> 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 526a9252cf7efaf5a3c724255094c345b5776c01..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--}';
        }
@@ -221,8 +221,8 @@ LIMIT 1",
        // Add points to array
        postRequestParameter('points_amount', $points);
        postRequestParameter('points_used'  , '0.00000');
-       postRequestParameter('last_pay'     , $pay);
-       postRequestParameter('last_curr'    , $curr);
+       postRequestParameter('last_payment' , $pay);
+       postRequestParameter('last_currency', $curr);
 
        // Register sponsor but never ever update here!
        $message = doProcessSponsorFormRequest($messageArray);
@@ -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