[Bps-public-commit] r10913 - in RT-Authen-Bitcard: html/Callbacks/Bitcard/Elements/Login

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 22 05:57:58 EST 2008


Author: ruz
Date: Fri Feb 22 05:57:40 2008
New Revision: 10913

Modified:
   RT-Authen-Bitcard/META.yml
   RT-Authen-Bitcard/Makefile.PL
   RT-Authen-Bitcard/html/Callbacks/Bitcard/Elements/Login/Default

Log:
* use register_url method instead of hardcoded string

Modified: RT-Authen-Bitcard/META.yml
==============================================================================
--- RT-Authen-Bitcard/META.yml	(original)
+++ RT-Authen-Bitcard/META.yml	Fri Feb 22 05:57:40 2008
@@ -15,6 +15,6 @@
     - inc
     - t
 requires: 
-  Authen::Bitcard: 0
+  Authen::Bitcard: 0.86
   Encode: 0
 version: 0.02

Modified: RT-Authen-Bitcard/Makefile.PL
==============================================================================
--- RT-Authen-Bitcard/Makefile.PL	(original)
+++ RT-Authen-Bitcard/Makefile.PL	Fri Feb 22 05:57:40 2008
@@ -8,7 +8,7 @@
 version_from    ('lib/RT/Authen/Bitcard.pm');
 license         ('GPL version 2');
 
-requires        ('Authen::Bitcard');
+requires        ('Authen::Bitcard' => '0.86'); # we need register_url method
 requires        ('Encode');
 
 &WriteAll;

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	Fri Feb 22 05:57:40 2008
@@ -5,13 +5,13 @@
   $bc->token($RT::BitcardToken);
   $bc->info_required('email,username');
   $bc->info_optional('name');
-  my $login_url = $bc->login_url( r => $RT::WebURL . 'index.html');
+  my $return_to = $RT::WebURL . 'index.html';
 </%INIT>
 <div class="input-row">
   Have a <a href="https://www.bitcard.org">Bitcard</a> account?
-  <a href="<% $login_url %>">Log in with it now</a>.
+  <a href="<% $bc->login_url( r => $return_to ) %>">Log in with it now</a>.
 </div>
 <div class="input-row">
-  <a href="https://www.bitcard.org/register?bc=%3D%3A%3Ap%3Dbc">
+  <a href="<% $bc->register_url( r => $return_to ) %>">
   Get a Bitcard account.</a>
 </div>



More information about the Bps-public-commit mailing list