Heacy rewrite/cleanup:
[mailer.git] / inc / modules / sponsor / account.php
index 4edb063590215aceebe1c6be2f63ea7104518111..7fa142b3f1dddeb81c48d4464d22a8623cd74c3f 100644 (file)
@@ -87,7 +87,7 @@ if (sqlNumRows($result) == 1) {
                        } elseif ((isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password2'))) {
                                // No password two entered
                                $message = '{--SPONSOR_PASSWORD_TWO_EMPTY--}';
-                       } elseif ((isPostRequestElementSet('password1')) && (strlen(postRequestElement('password1')) < getPassLen())) {
+                       } elseif ((isPostRequestElementSet('password1')) && (strlen(postRequestElement('password1')) < getMinPasswordLength())) {
                                // Too short password
                                $message = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
                        } else {