Skip to content

Commit

Permalink
FacebookConnectable strategy #valid? should depend on Devise::Strateg…
Browse files Browse the repository at this point in the history
…ies::Base#valid?
  • Loading branch information
grimen committed Jan 7, 2010
1 parent ad7612a commit 77d2744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise_facebook_connectable/strategy.rb
Expand Up @@ -16,7 +16,7 @@ class FacebookConnectable < ::Warden::Strategies::Base
# Without a Facebook session authentication cannot proceed.
#
def valid?
::Facebooker::Session.current.present?
super && ::Facebooker::Session.current.present?
end

# Authenticate user with Facebook Connect.
Expand Down

1 comment on commit 77d2744

@bitzesty
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will try this out tomorrow morning, hopefully fixes it :)

Please sign in to comment.