[Jifty-commit] r3317 - jifty/trunk/lib/Jifty/Plugin/Authentication/Password

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Jun 1 16:10:13 EDT 2007


Author: clkao
Date: Fri Jun  1 16:10:13 2007
New Revision: 3317

Modified:
   jifty/trunk/lib/Jifty/Plugin/Authentication/Password/View.pm

Log:
The (unused) resend_confirmation template was missing.

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	Fri Jun  1 16:10:13 2007
@@ -119,4 +119,35 @@
     Jifty->web->form->end();
 };
 
+template 'resend_confirmation' => page {
+    attr { title => "Resend Confirmation Email" };
+    my $resend = Jifty->web->new_action(
+        class   => 'ResendConfirmation',
+        moniker => 'resendconf'
+    );
+
+    if (    Jifty->web->current_user->id
+        and Jifty->web->current_user->user_object->email_confirmed )
+    {
+        Jifty->web->redirect('/');
+    } else {
+        div {
+            attr { id => 'overview' };
+            form {
+                Jifty->web->form->next_page( url => '/' );
+
+                p {
+                    _(  q{Fill in your address below, and we'll send out another confirmation email to you. }
+                    );
+                    render_param( $resend => 'email', focus => 1 );
+                    form_submit( label => 'Resend Confirmation' );
+                    }
+                }
+            }
+
+    }
+};
+
+
+
 1;


More information about the Jifty-commit mailing list