[freeside-commits] branch FREESIDE_4_BRANCH updated. 1645243c8025b67946ea48964268390be4bd7701

Jonathan Prykop jonathan at 420.am
Fri May 6 16:52:34 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  1645243c8025b67946ea48964268390be4bd7701 (commit)
      from  3496d6ca7743e2520de167674f050b1e78d81c1c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1645243c8025b67946ea48964268390be4bd7701
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Fri May 6 18:48:49 2016 -0500

    RT#41641: Disable strict password requirements [v4+ only, passwordmin default increased to 8]

diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm
index 3dd9ce4..122e3fd 100644
--- a/FS/FS/Password_Mixin.pm
+++ b/FS/FS/Password_Mixin.pm
@@ -46,7 +46,7 @@ sub is_password_allowed {
   # basic checks using Data::Password;
   # options for Data::Password
   $DICTIONARY = 0;   # minimum length of disallowed words, false value disables dictionary checking
-  $MINLEN = $conf->config('passwordmin') || 6;
+  $MINLEN = $conf->config('passwordmin') || 8;
   $MAXLEN = $conf->config('passwordmax') || 12;
   $GROUPS = 4;       # must have all 4 'character groups': numbers, symbols, uppercase, lowercase
   # other options use the defaults listed below:
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 93659f9..b7967ae 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -67,11 +67,11 @@ FS::UID->install_callback( sub {
   @shells = $conf->config('shells');
   $usernamemin = $conf->config('usernamemin') || 2;
   $usernamemax = $conf->config('usernamemax');
-  $passwordmin = $conf->config('passwordmin'); # || 6;
-  #blank->6, keep 0
+  $passwordmin = $conf->config('passwordmin');
+  #blank->8, keep 0
   $passwordmin = ( defined($passwordmin) && $passwordmin =~ /\d+/ )
                    ? $passwordmin
-                   : 6;
+                   : 8;
   $passwordmax = $conf->config('passwordmax') || 12;
   $username_letter = $conf->exists('username-letter');
   $username_letterfirst = $conf->exists('username-letterfirst');

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Password_Mixin.pm |    2 +-
 FS/FS/svc_acct.pm       |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list