Skip to content

Commit

Permalink
don't fall back to email as identifier if no user with external_id is…
Browse files Browse the repository at this point in the history
… found (bigbluebutton#5876)
  • Loading branch information
Ithanil authored Jul 5, 2024
1 parent 6b1f93d commit 6939e1e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/controllers/external_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ def create_user

user = User.find_by(external_id: credentials['uid'], provider:)

# Fallback mechanism to search by email
if user.blank?
user = User.find_by(email: credentials['info']['email'], provider:)
# Update the user's external id to the latest value to avoid using the fallback
user.update(external_id: credentials['uid']) if user.present? && credentials['uid'].present?
end

new_user = user.blank?

registration_method = SettingGetter.new(setting_name: 'RegistrationMethod', provider: current_provider).call
Expand Down

0 comments on commit 6939e1e

Please sign in to comment.