]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / libs / sponsor_functions.php
index b60e222682f0fbf7eb3c80e2ff23a0aeb0a9e961..36bb1a990bc40bec87d4f4729b62d637fe2a8725 100644 (file)
@@ -92,11 +92,11 @@ function handleSponsorRequest ($postData, $update=false, $messageArray = array()
                                                }
                                                break;
 
-                                       case 'pass1':
+                                       case 'password1':
                                                $k = ''; $v = '';
                                                break;
 
-                                       case 'pass2':
+                                       case 'password2':
                                                $k = 'password'; $v = md5($v);
                                                break;
 
@@ -390,17 +390,17 @@ function saveSponsorData ($postData, $content) {
        // Unsecure data which we don't want
        $UNSAFE = array('password', 'id', 'remote_addr', 'sponsor_created', 'last_online', 'status', 'ref_count',
                        'points_amount', 'points_used', 'refid', 'hash', 'last_payment', 'last_currency',
-                       'pass_old', 'ok', 'pass1', 'pass2');
+                       'pass_old', 'ok', 'password1', 'password2');
 
        // Set default message ("not saved")
        $message = '{--SPONSOR_ACCOUNT_DATA_NOT_SAVED--}';
 
        // Check for submitted passwords
-       if ((!empty($postData['pass1'])) && (!empty($postData['pass2']))) {
+       if ((!empty($postData['password1'])) && (!empty($postData['password2']))) {
                // Are both passwords the same?
-               if ($postData['pass1'] == $postData['pass2']) {
-                       // Okay, then set password and remove pass1 and pass2
-                       $postData['password'] = md5($postData['pass1']);
+               if ($postData['password1'] == $postData['password2']) {
+                       // Okay, then set password and remove password1 and password2
+                       $postData['password'] = md5($postData['password1']);
                } // END - if
        } // END - if
 
@@ -584,7 +584,7 @@ function doProcessSponsorFormRequest ($messageArray = array()) {
                                $content['surname']   = postRequestElement('surname');
                                $content['family']    = postRequestElement('family');
                                $content['timestamp'] = generateDateTime(time(), 0);
-                               $content['password']  = postRequestElement('pass1');
+                               $content['password']  = postRequestElement('password1');
 
                                // Generate email and send it to the new sponsor
                                $message = loadEmailTemplate('sponsor_confirm', $content, $id);