[Jifty-commit] r3007 - in jifty/trunk: lib/Jifty/Plugin/LetMe
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Mar 17 01:45:15 EDT 2007
Author: jesse
Date: Sat Mar 17 01:45:15 2007
New Revision: 3007
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/LetMe/Dispatcher.pm
Log:
r53565 at pinglin: jesse | 2007-03-17 01:42:26 -0400
cleaned up the dispatcher for letme
Modified: jifty/trunk/lib/Jifty/Plugin/LetMe/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/LetMe/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/LetMe/Dispatcher.pm Sat Mar 17 01:45:15 2007
@@ -19,17 +19,15 @@
my $let_me = Jifty::LetMe->new();
$let_me->from_token($1);
redirect '/error/let_me/invalid_token' unless $let_me->validate;
+ warn ref( $let_me->validated_current_user );
+ Jifty->web->temporary_current_user( $let_me->validated_current_user );
- Jifty->web->temporary_current_user($let_me->validated_current_user);
-
- my %args = %{$let_me->args};
+ my %args = %{ $let_me->args };
set $_ => $args{$_} for keys %args;
set let_me => $let_me;
};
-on qr'^/let/' => run {
- my $let_me = get 'let_me';
- show '/let/' . $let_me->path;
-};
+on qr'^/let/' =>
+ run { my $let_me = get 'let_me'; show '/let/' . $let_me->path; };
1;
More information about the Jifty-commit
mailing list