Skip to content

Commit

Permalink
Ignore sync uid in case confirmable mail changed (lynndylanhurley#1407)
Browse files Browse the repository at this point in the history
* Ignore sync uid in case confirmable mail changed

* Update user_omniauth_callbacks.rb

* Update user_omniauth_callbacks.rb
  • Loading branch information
pnghai committed Jun 10, 2020
1 parent b3d53b6 commit bb09616
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def email_provider?
end

def sync_uid
if devise_modules.include?(:confirmable) && !@bypass_confirmation_postpone
return if postpone_email_change?
end
self.uid = email if email_provider?
end
end

0 comments on commit bb09616

Please sign in to comment.