]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_add.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-admins_add.php
index eb146645f2a4c0bf54f91ab49c0a089ab32d75ae..0b5d3932fb36641afba408e3098b9f75aa457de2 100644 (file)
@@ -49,9 +49,9 @@ $FORM = TRUE;
 // Is the form sent?
 if (isFormSent('add')) {
        // Check all
-       if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')) && (postRequestElement('pass1') == postRequestElement('pass2'))) {
+       if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')) && (postRequestElement('password1') == postRequestElement('password2'))) {
                // Add admin when not added already
-               if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('pass1')), postRequestElement('email')) == 'done') {
+               if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('password1')), postRequestElement('email')) == 'done') {
                        // Do not ouput any form!
                        $FORM = FALSE;