[Rt-commit] r14333 - in rt/branches/3.999-DANGEROUS: lib/RT/Model

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Jul 21 11:21:18 EDT 2008


Author: sunnavy
Date: Mon Jul 21 11:21:16 2008
New Revision: 14333

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm

Log:
 r14782 at sunnavys-mb:  sunnavy | 2008-07-21 23:19:47 +0800
 MinimumpasswordLength => MinimumPasswordLength


Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm	Mon Jul 21 11:21:16 2008
@@ -197,7 +197,7 @@
     }
 
     elsif ( length( $args{'password'} ) < RT->config->get('MinimumPasswordLength') ) {
-        return ( 0, _( "password needs to be at least %1 characters long", RT->config->get('MinimumpasswordLength') ) );
+        return ( 0, _( "password needs to be at least %1 characters long", RT->config->get('MinimumPasswordLength') ) );
     }
 
     unless ( $args{'name'} ) {
@@ -679,13 +679,13 @@
     }
 
     my $min = (
-          RT->config->get('MinimumpasswordLength') > 6
-        ? RT->config->get('MinimumpasswordLength')
+          RT->config->get('MinimumPasswordLength') > 6
+        ? RT->config->get('MinimumPasswordLength')
         : 6
     );
     my $max = (
-          RT->config->get('MinimumpasswordLength') > 8
-        ? RT->config->get('MinimumpasswordLength')
+          RT->config->get('MinimumPasswordLength') > 8
+        ? RT->config->get('MinimumPasswordLength')
         : 8
     );
     my $pass = Text::Password::Pronounceable->generate( $min => $max );
@@ -719,8 +719,8 @@
 
     if ( !$password ) {
         return ( 0, _("No password set") );
-    } elsif ( length($password) < RT->config->get('MinimumpasswordLength') ) {
-        return ( 0, _( "password needs to be at least %1 characters long", RT->config->get('MinimumpasswordLength') ) );
+    } elsif ( length($password) < RT->config->get('MinimumPasswordLength') ) {
+        return ( 0, _( "password needs to be at least %1 characters long", RT->config->get('MinimumPasswordLength') ) );
     }
     return ( 1, "ok" );
 


More information about the Rt-commit mailing list