Commit 7d742d73c78f79a241e4d187071db11e2b083dc4
Committed by
Victor Costa
1 parent
7bf48b6c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fixed bug on /plugins/oauth_client/lib/ext/user.rb -> was referencing a class Oa…
…uthClientPlugin::UserProvider which was recently renamed to OauthClientPlugin::Auth. Conflicts: plugins/serpro_captcha
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/oauth_client/lib/ext/user.rb
... | ... | @@ -48,8 +48,8 @@ class User |
48 | 48 | |
49 | 49 | def activate_oauth_user |
50 | 50 | self.oauth_providers.each do |provider| |
51 | - OauthClientPlugin::UserProvider.create! do |user_provider| | |
52 | - user_provider.user = self | |
51 | + OauthClientPlugin::Auth.create! do |user_provider| | |
52 | + user_provider.profile = self.person | |
53 | 53 | user_provider.provider = provider |
54 | 54 | user_provider.enabled = true |
55 | 55 | user_provider.oauth_data = oauth_data | ... | ... |