OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Allow remapping of all existing users if the setting allows it
Oliver Günther629c73c8520c
diff --git a/app/controllers/concerns/accounts/omniauth_login.rb b/app/controllers/concerns/accounts/omniauth_login.rbindex 17bb2a345e5..d57c1076b86 100644--- a/app/controllers/concerns/accounts/omniauth_login.rb+++ b/app/controllers/concerns/accounts/omniauth_login.rb@@ -81,14 +81,8 @@ module Accounts::OmniauthLoginreturn user unless user.nil?if Setting.oauth_allow_remapping_of_existing_users?- # Allow to map existing users with an Omniauth source if the login- # already exists, and no existing auth source or omniauth provider is- # linked- user = User.find_by(- login: user_attributes[:login],- identity_url: nil,- auth_source_id: nil- )+ # Allow to map existing users with an Omniauth source if the login already exists+ user = User.find_by(login: user_attributes[:login])endif user.nil?