[Jifty-commit] r3165 - in jifty/trunk: lib/Jifty/Plugin/Authentication/Password

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Apr 22 19:33:59 EDT 2007


Author: jesse
Date: Sun Apr 22 19:33:59 2007
New Revision: 3165

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Dispatcher.pm
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm

Log:
 r55808 at pinglin:  jesse | 2007-04-22 19:19:56 -0400
 * Better "password reset" behaviour  


Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Dispatcher.pm	Sun Apr 22 19:33:59 2007
@@ -65,6 +65,9 @@
     set 'next' => Jifty->web->request->continuation || Jifty::Continuation->new( request => Jifty::Request->new( path => "/" ) );
 };
 
+before qr|(?:reset_lost_password)| => run {
+    set 'next' => Jifty->web->request->continuation || Jifty::Continuation->new( request => Jifty::Request->new( path => "/" ) );
+};
 # Send a password reminder for a lost password
 
 =head2 on passwordreminder

Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm	Sun Apr 22 19:33:59 2007
@@ -72,11 +72,11 @@
 
 template 'let/reset_lost_password' => page {
     my ( $next ) = get(qw(next));
-    attr { title => 'Reset lost password' };
+    title is 'Reset lost password' ;
     my $action = Jifty->web->new_action( class => 'ResetLostPassword' );
 
-    h2   { _('Reset lost password') };
     Jifty->web->form->start( call => $next );
+    outs_raw($next);
         render_param( $action => $_ ) for ( $action->argument_names );
         form_return( label => _("New password"), submit => $action );
     Jifty->web->form->end();
@@ -94,7 +94,7 @@
         class   => 'SendPasswordReminder',
     );
 
-    h2 { _('Send a link to reset your password') };
+    title is _('Send a link to reset your password');
     outs( _(  "You lost your password. A link to reset it will be sent to the following email address:"));
     my $focused = 0;
     Jifty->web->form->start( call => $next );
@@ -106,7 +106,7 @@
 
 template 'passwordreminder' => page {
     my $next = get('next');
-    attr { title => _('Send a password reminder') };
+     title is  _('Send a password reminder');
     my $action = Jifty->web->new_action(
         moniker => 'password_reminder',
         class   => 'SendPasswordReminder',


More information about the Jifty-commit mailing list