/[transports]/trunk/web/templates/login
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/web/templates/login

Parent Directory Parent Directory | Revision Log Revision Log


Revision 87 - (show annotations)
Fri Jun 16 18:20:02 2006 UTC (18 years ago) by dpavlin
File size: 591 byte(s)
login now preserves continuations, run { }; rules in despatcher should *REALLY* end with
; to avoid havoc, added dump of rules on startup
1 <%init>
2 my $action = Jifty->web->new_action(class => 'Login', monkier => 'loginbox' );
3 my $next = Jifty->web->request->continuation ||
4 Jifty::Continuation->new(
5 request => Jifty::Request->new( path => '/transports' )
6 );
7 </%init>
8 <&|/_elements/wrapper, title => 'Login' &>
9
10 % if (not Jifty->web->current_user->id) {
11 <h2>Login</h2>
12 <% Jifty->web->form->start( name => 'loginbox', call => $next ) %>
13 <% $action->form_field('email') %>
14 <% $action->form_field('password') %>
15 <% Jifty->web->form->submit(label => 'Login') %>
16 <% Jifty->web->form->end %>
17 % }
18 % else {
19 You're logged in.
20 % }
21 </&>

  ViewVC Help
Powered by ViewVC 1.1.26