[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. 9bcdbd77134f06f5cae6fb12b53ba2137aec3d43

Shawn Moore sartak at bestpractical.com
Fri Jun 4 08:52:46 EDT 2010


The branch, master has been updated
       via  9bcdbd77134f06f5cae6fb12b53ba2137aec3d43 (commit)
      from  5b8679048fc56fa28de202373362a6bebc69f0bd (commit)

Summary of changes:
 lib/Jifty/Plugin/Authentication/Twitter.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 9bcdbd77134f06f5cae6fb12b53ba2137aec3d43
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri Jun 4 08:53:29 2010 -0400

    Lean on Authen::OAuth's new accessors

diff --git a/lib/Jifty/Plugin/Authentication/Twitter.pm b/lib/Jifty/Plugin/Authentication/Twitter.pm
index 056853a..84a1156 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter.pm
@@ -42,17 +42,17 @@ and L<Jifty::Plugin::Authentication::Twitter::Dispatcher> for the URLs handled.
 
 =cut
 
-our %CONFIG = ( );
-
 =head2 init
 
+Confirm that we have a consumer key and consumer secret
+
 =cut
 
 sub init {
     my $self = shift;
-    %CONFIG  = @_;
+    $self->SUPER::init(@_);
 
-    exists $CONFIG{consumer_key} && exists $CONFIG{consumer_secret}
+    $self->consumer_key && $self->consumer_secret
         or die "The Authentication::Twitter plugin requires consumer_key and consumer_secret!\n";
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list