Skip to content

Commit

Permalink
Update omniauth_callbacks_controller.rb (lynndylanhurley#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpLouk authored Apr 29, 2020
1 parent ef965d7 commit a3595f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def omniauth_params

# break out provider attribute assignment for easy method extension
def assign_provider_attrs(user, auth_hash)
attrs = auth_hash['info'].slice(*user.attribute_names)
attrs = auth_hash['info'].to_hash
attrs = attrs.slice(*user.attribute_names)
user.assign_attributes(attrs)
end

Expand Down

0 comments on commit a3595f4

Please sign in to comment.