AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-edit_user.php
index a241477977f0a8bc24efae224ca7a2434bd43b6a..05602f4958319f5baab6f956ad9473d21455e97f 100644 (file)
@@ -72,13 +72,13 @@ if ((!isGetRequestElementSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
        } elseif (isFormSent('edit')) {
                // Ok, change the account...
                $updateUser = FALSE; $add = '';
-               if ((!isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass2'))) {
+               if ((!isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password2'))) {
                        // Don't change the password
                        $updateUser = TRUE;
-               } elseif ((postRequestElement('pass1') == postRequestElement('pass2'))) {
+               } elseif ((postRequestElement('password1') == postRequestElement('password2'))) {
                        // Change the password
                        $updateUser = TRUE;
-                       $add = ",`password`='" . generateHash(postRequestElement('pass1')) . "'";
+                       $add = ",`password`='" . generateHash(postRequestElement('password1')) . "'";
                }
 
                if ($updateUser === TRUE) {