[Jifty-commit] r4833 - in jifty/trunk: . lib/Jifty/Plugin/Authentication/Password/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jan 12 19:16:01 EST 2008


Author: jesse
Date: Sat Jan 12 19:16:01 2008
New Revision: 4833

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm

Log:
 r74967 at pinglin:  jesse | 2008-01-12 18:14:49 -0600
 * small bugfixes


Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm	Sat Jan 12 19:16:01 2008
@@ -135,17 +135,18 @@
     my $token    = $self->argument_value('token') || '';
     my $hashedpw = $self->argument_value('hashed_password');
 
+           my $BAD_PW =  _('You may have mistyped your email or password. Give it another shot.');
 
     if ( $token ne '' ) {   # browser supports javascript, do password hashing
         unless ( $user->id && $user->hashed_password_is( $hashedpw, $token ) )
         {
-            $self->result->error( _('You may have mistyped your email or password. Give it another shot.'));
+            $self->result->error($BAD_PW);
             return;
         }
         Jifty->web->session->set( login_token => '' );
     } else {                # no password hashing over the wire
         unless ( $user->id && $user->password_is($password) ) {
-            $self->result->error( _('You may have mistyped your email or password. Give it another shot.'));
+            $self->result->error($BAD_PW);
             return;
         }
     }

Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Mixin/Model/User.pm	Sat Jan 12 19:16:01 2008
@@ -58,8 +58,8 @@
 column password =>
   is unreadable,
   label is _('Password'),
-  type is 'varchar(32)',
-  max_length is 32,
+  type is 'varchar(64)',
+  max_length is 64,
   lenght is 16,
   hints is _('Your password should be at least six characters'),
   render_as 'password',


More information about the Jifty-commit mailing list