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

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 22 14:45:42 EST 2008


Author: ruz
Date: Fri Feb 22 14:45:42 2008
New Revision: 10920

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

Log:
* use new method

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 14:45:42 2008
@@ -1,10 +1,6 @@
 <%INIT>
-  use Authen::Bitcard;
-  my $bc = Authen::Bitcard->new;
-  die 'No Bitcard auth token provided as $BitcardToken in the RT configuration file on this server' unless $RT::BitcardToken;
-  $bc->token($RT::BitcardToken);
-  $bc->info_required('email,username');
-  $bc->info_optional('name');
+  use RT::Authen::Bitcard;
+  my $bc = RT::Authen::Bitcard->handler;
   my $return_to = $RT::WebURL . 'index.html';
 </%INIT>
 <div class="input-row">



More information about the Bps-public-commit mailing list