]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/account.php
Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / modules / sponsor / account.php
index f39402baa58136b7880c7780be1bf51425a5d55b..0d0196de4a6c0219cf6e548c603c8705fb6a9169 100644 (file)
@@ -87,7 +87,7 @@ if (SQL_NUMROWS($result) == 1) {
                        } elseif ((isPostRequestParameterSet('pass1')) && (!isPostRequestParameterSet('pass2'))) {
                                // No password two entered
                                $message = '{--SPONSOR_PASSWORD_TWO_EMPTY--}';
-                       } elseif ((isPostRequestParameterSet('pass1')) && (strlen(postRequestParameter('pass1')) < getConfig('pass_len'))) {
+                       } elseif ((isPostRequestParameterSet('pass1')) && (strlen(postRequestParameter('pass1')) < getPassLen())) {
                                // Too short password
                                $message = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
                        } else {