]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-register.php
Heacy rewrite/cleanup:
[mailer.git] / inc / modules / guest / what-register.php
index 8b424a837e89d197bd4cebc2ce3283e473852eed..d30a787e3f3677b3d313be08f6e4fb7c94b66e53 100644 (file)
@@ -92,8 +92,8 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
                        registerOutputFailedMessage('ENTER_PASSWORD2');
                }
 
-               if ((isset($GLOBALS['registration_short_password'])) && ($GLOBALS['registration_short_password'] === TRUE)) {
-                       registerOutputFailedMessage('GUEST_SHORT_PASS', ': ' . getPassLen());
+               if ((isset($GLOBALS['registration_weak_password'])) && ($GLOBALS['registration_weak_password'] === TRUE)) {
+                       registerOutputFailedMessage('GUEST_WEAK_PASSWORD');
                } // END - if
 
                if ((isset($GLOBALS['registration_ip_timeout'])) && ($GLOBALS['registration_ip_timeout'] === TRUE)) {
@@ -127,7 +127,7 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
 
        // ZIP codes are numerical values
        $content['zip'] = '';
-       if ((isPostRequestElementSet('zip')) && (postRequestElement('zip') > 0)) {
+       if ((isPostRequestElementSet('zip')) && (isValidNumber(postRequestElement('zip')))) {
                $content['zip'] = bigintval(postRequestElement('zip'));
        } // END - if