Compare commits

..

3 Commits

Author SHA1 Message Date
Matthew Saunders Brown
150d64d1d0 update password requirement descriptions 2022-09-27 16:36:27 -07:00
Matthew Saunders Brown
6df7482f0f change password requirements 2022-09-27 16:33:11 -07:00
Matthew Saunders Brown
110fd8669f fix var name 2022-09-27 16:32:53 -07:00
4 changed files with 26 additions and 20 deletions

View File

@ -113,6 +113,8 @@ class Panel {
} }
if(strlen($password) < 15) {
$character_class = 0; $character_class = 0;
if (preg_match('/[[:lower:]]/', $password)) { if (preg_match('/[[:lower:]]/', $password)) {
@ -141,7 +143,9 @@ class Panel {
if ($character_class < 3) { if ($character_class < 3) {
$messages[] = "Password must contain characters from at least three of the following four groups: Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters."; $messages[] = "Passwords under 15 characters must contain characters from at least three of the following four groups: Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters. Passwords 15 or more characters long do not have any complexity requirements.";
}
} }

View File

@ -76,7 +76,7 @@ class MboxesEdit extends \Panel\Vmail {
$ratelimit = "NULL"; $ratelimit = "NULL";
} }
$f3->call('\Panel::validateEmailRatelimit', $ratelimit); $f3->call('\Panel::validateEmailRatelimit', $ratelimit);
$f3->call('\Panel::validateEmailFiltering', $filtering); $f3->call('\Panel::validateEmailFiltering', $filter);
/* check for validation errors */ /* check for validation errors */
if ($f3->exists('SESSION.messages')) { if ($f3->exists('SESSION.messages')) {

View File

@ -91,8 +91,9 @@
<p> <p>
<b>Account</b> is the "local-part" of the email address and can contain letters, numbers, and periods.<br> <b>Account</b> is the "local-part" of the email address and can contain letters, numbers, and periods.<br>
<b>Password</b> must be at least 8 characters with 12 or more being highly recommended.<br> <b>Password</b> must be at least 8 characters with 12 or more being highly recommended.<br>
The password must contain characters from at least three of the following four groups:<br> Passwords under 15 characters must contain characters from at least three of the following four groups:<br>
Lower Case Letters, Upper Case Letters, Numbers, Punctuation/Special Characters.<br> Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters.<br>
Passwords 15 or more characters long do not have any complexity requirements.<br>
<b>Status</b> can be used to temporarily disable the email account. If the account is enabled with the Admin option they can managed all email accounts.<br> <b>Status</b> can be used to temporarily disable the email account. If the account is enabled with the Admin option they can managed all email accounts.<br>
<b>Quota</b> is the storage limit in GB for the email account.<br> <b>Quota</b> is the storage limit in GB for the email account.<br>
<b>Rate Limit</b> is the hourly sending rate limit for the email account, and is multiplied by 10 for the daily sending limit.<br> <b>Rate Limit</b> is the hourly sending rate limit for the email account, and is multiplied by 10 for the daily sending limit.<br>

View File

@ -88,8 +88,9 @@
</form> </form>
<p> <p>
<b>Password</b> must be at least 8 characters with 12 or more being highly recommended.<br> <b>Password</b> must be at least 8 characters with 12 or more being highly recommended.<br>
The password must contain characters from at least three of the following four groups:<br> Passwords under 15 characters must contain characters from at least three of the following four groups:<br>
Lower Case Letters, Upper Case Letters, Numbers, Punctuation/Special Characters.<br> Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters.<br>
Passwords 15 or more characters long do not have any complexity requirements.<br>
<b>Status</b> can be used to temporarily disable the email account. If the account is enabled with the Admin option they can managed all email accounts.<br> <b>Status</b> can be used to temporarily disable the email account. If the account is enabled with the Admin option they can managed all email accounts.<br>
<b>Quota</b> is the storage limit in GB for the email account.<br> <b>Quota</b> is the storage limit in GB for the email account.<br>
<b>Rate Limit</b> is the hourly sending rate limit for the email account, and is multiplied by 10 for the daily sending limit.<br> <b>Rate Limit</b> is the hourly sending rate limit for the email account, and is multiplied by 10 for the daily sending limit.<br>