Skip to content

Commit

Permalink
Merge pull request #4 from letmein/patch-1
Browse files Browse the repository at this point in the history
'sig' is not initialized in Controller#fetch_client_and_user
  • Loading branch information
dekart committed Oct 3, 2011
2 parents 18ee331 + a989fc3 commit 8dc1d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/facebooker2/rails/controller.rb
Expand Up @@ -46,8 +46,8 @@ def current_facebook_client
def fetch_client_and_user
unless @_fb_user_fetched
# Try to authenticate from the signed request first
fetch_client_and_user_from_signed_request
fetch_client_and_user_from_cookie if @_current_facebook_client.nil? and !signed_request_from_logged_out_user?
sig = fetch_client_and_user_from_signed_request
sig = fetch_client_and_user_from_cookie if @_current_facebook_client.nil? and !signed_request_from_logged_out_user?

#write the authentication params to a new cookie
if !@_current_facebook_client.nil?
Expand Down

0 comments on commit 8dc1d69

Please sign in to comment.