Skip to content

Commit c857845

Browse files
author
Nicholas W. Watson
committed
Added terms acceptance to strategy
1 parent 930d0ac commit c857845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/entropi_social/strategies/facebook.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def find_for_facebook_oauth(access_token, signed_in_resource=nil)
1313
if user = User.where(:email => data.email).first
1414
user
1515
else # Create a user with a stub password.
16-
user = User.create!(:email => data.email, :password => Devise.friendly_token[0,20])
16+
user = User.create!(:email => data.email, :password => Devise.friendly_token[0,20], :terms_accepted => true)
1717
profile = user.build_profile(:first_name => access_token.info.first_name, :last_name => access_token.info.first_name)
1818
profile.save!
1919
return user

0 commit comments

Comments
 (0)