[Bps-public-commit] r20244 - RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login

ruz at bestpractical.com ruz at bestpractical.com
Tue Dec 29 23:08:20 EST 2009


Author: ruz
Date: Tue Dec 29 23:08:19 2009
New Revision: 20244

Modified:
   RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login/Default

Log:
* fix login/register links

Modified: RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login/Default
==============================================================================
--- RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login/Default	(original)
+++ RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login/Default	Tue Dec 29 23:08:19 2009
@@ -2,8 +2,10 @@
   use RT::Authen::Bitcard;
   my $bc = RT::Authen::Bitcard->handler;
   my $return_to = $RT::WebURL . 'index.html';
+  my $login_url = $m->interp->apply_escapes( $bc->login_url( r => $return_to ), 'h' );
+  my $register_url = $m->interp->apply_escapes( $bc->register_url( r => $return_to ), 'h' );
 </%INIT>
 <h3><% loc('Have a <em>Bitcard</em> account?') |n %></h3>
 <p>
-<% loc('<a href="[_1]">Log in with it</a> now or get a <a href="[_1]">Bitcard account</a>.', $return_to ) |n %>
+<% loc('<a href="[_1]">Log in with it</a> now or get a <a href="[_2]">Bitcard account</a>.', $login_url, $register_url ) |n %>
 </p>



More information about the Bps-public-commit mailing list