[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. 262fcd5102538e335a516442e6844d6a99abb3fa

Shawn Moore sartak at bestpractical.com
Thu Jun 3 03:43:42 EDT 2010


The branch, master has been updated
       via  262fcd5102538e335a516442e6844d6a99abb3fa (commit)
      from  732d584974018ebe93b5e9b9148a649622c1a8d3 (commit)

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

- Log -----------------------------------------------------------------
commit 262fcd5102538e335a516442e6844d6a99abb3fa
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Jun 3 03:44:18 2010 -0400

    Confirm early that we have consumer key and secret

diff --git a/lib/Jifty/Plugin/Authentication/Twitter.pm b/lib/Jifty/Plugin/Authentication/Twitter.pm
index ebe0e20..4c9e919 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter.pm
@@ -51,6 +51,9 @@ our %CONFIG = ( );
 sub init {
     my $self = shift;
     %CONFIG  = @_;
+
+    exists $CONFIG{consumer_key} && exists $CONFIG{consumer_secret}
+        or die "The Authentication::Twitter plugin requires consumer_key and consumer_secret!\n";
 }
 
 =head1 AUTHOR

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



More information about the Bps-public-commit mailing list