[Rt-commit] [svn] r1674 - in rt/branches/3.3-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Wed Oct 20 18:33:20 EDT 2004


Author: jesse
Date: Wed Oct 20 18:33:19 2004
New Revision: 1674

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/lib/RT/User_Overlay.pm
Log:
 r6063 at tinbook:  jesse | 2004-10-20T19:54:02.885732Z
 RT-Ticket: 6180
 RT-Status: resolved
 RT-Update: correspond
 
 If you have changed $MinimumPasswordLength to be greater than 6, RT's "GenerateRandomPassword" method now takes that into account
 
 


Modified: rt/branches/3.3-TESTING/lib/RT/User_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/User_Overlay.pm	(original)
+++ rt/branches/3.3-TESTING/lib/RT/User_Overlay.pm	Wed Oct 20 18:33:19 2004
@@ -727,7 +727,11 @@
         return ( 0, $self->loc("Permission Denied") );
     }
 
-    my $pass = $self->GenerateRandomPassword( 6, 8 );
+
+    my $min = ( $RT::MinimumPasswordLength > 6 ?  $RT::MinimumPasswordLength : 6);
+    my $max = ( $RT::MinimumPasswordLength > 8 ?  $RT::MinimumPasswordLength : 8);
+
+    my $pass = $self->GenerateRandomPassword( $min, $max) ;
 
     # If we have "notify user on 
 


More information about the Rt-commit mailing list