[Bps-public-commit] r10919 - RT-Authen-Bitcard/html/Callbacks/Bitcard/NoAuth/Logout.html
ruz at bestpractical.com
ruz at bestpractical.com
Fri Feb 22 14:45:14 EST 2008
Author: ruz
Date: Fri Feb 22 14:45:14 2008
New Revision: 10919
Modified:
RT-Authen-Bitcard/html/Callbacks/Bitcard/NoAuth/Logout.html/AfterSessionDelete
Log:
* use new method
Modified: RT-Authen-Bitcard/html/Callbacks/Bitcard/NoAuth/Logout.html/AfterSessionDelete
==============================================================================
--- RT-Authen-Bitcard/html/Callbacks/Bitcard/NoAuth/Logout.html/AfterSessionDelete (original)
+++ RT-Authen-Bitcard/html/Callbacks/Bitcard/NoAuth/Logout.html/AfterSessionDelete Fri Feb 22 14:45:14 2008
@@ -1,16 +1,9 @@
<%INIT>
- use Authen::Bitcard;
+return unless $m->notes('isBitcardUser');
- if ($m->notes('isBitcardUser')) {
- my $bc = Authen::Bitcard->new;
-
- die 'No Bitcard auth token provided as $BitcardToken in the RT configuration file.'
- unless $RT::BitcardToken;
-
- $bc->token($RT::BitcardToken);
- my $return_url = $RT::WebURL . 'index.html';
-
- $m->redirect( $bc->logout_url( r => $return_url ) );
- $m->abort();
- }
+use RT::Authen::Bitcard;
+my $bc = RT::Authen::Bitcard->handler;
+my $return_url = $RT::WebURL . 'index.html';
+$m->redirect( $bc->logout_url( r => $return_url ) );
+$m->abort;
</%INIT>
More information about the Bps-public-commit
mailing list