[Jifty-commit] r3250 - in jifty/trunk/lib/Jifty/Plugin/OpenID: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri May 18 16:26:10 EDT 2007
Author: gugod
Date: Fri May 18 16:26:07 2007
New Revision: 3250
Modified:
jifty/trunk/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm
jifty/trunk/lib/Jifty/Plugin/OpenID/Dispatcher.pm
Log:
Make render_action() simply render the form fields of AuthenticateOpenID
action properly.
Also, set action to AuthenticateOpenID in the dispatcher. This
should make it easier for people to use openid plugin since they
can write less code in their /openid/login view.
Modified: jifty/trunk/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/OpenID/Action/AuthenticateOpenID.pm Fri May 18 16:26:07 2007
@@ -29,7 +29,8 @@
hints is 'For example: you.livejournal.com';
param 'return_to' =>
- default is '/openid/verify';
+ render as 'Hidden',
+ default is '/openid/verify_and_login';
};
=head2 take_action
Modified: jifty/trunk/lib/Jifty/Plugin/OpenID/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/OpenID/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/OpenID/Dispatcher.pm Fri May 18 16:26:07 2007
@@ -8,6 +8,13 @@
tangent('/openid/login') unless (Jifty->web->current_user->id)
};
+before qr'^/openid/login' => run {
+ set action => Jifty->web->new_action(
+ class => 'AuthenticateOpenID',
+ moniker => 'authenticateopenid'
+ );
+};
+
before qr'^/openid/verify' => run {
Jifty->web->request->add_action(
class => 'VerifyOpenID',
More information about the Jifty-commit
mailing list