Skip to content

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

Fix wrong comments/descriptions

Jan Sandbrinke324028191a1
diff --git a/app/services/authentication/omniauth_service.rb b/app/services/authentication/omniauth_service.rb
index 567275414f5..bade473d323 100644
--- a/app/services/authentication/omniauth_service.rb
+++ b/app/services/authentication/omniauth_service.rb
@@ -159,9 +159,7 @@ module Authentication
end
##
- # Allow to map existing users with an Omniauth source if the login
- # already exists, and no existing auth source or omniauth provider is
- # linked
+ # Allow to map existing users with an Omniauth source if the login already exists
def remap_existing_user
return unless Setting.oauth_allow_remapping_of_existing_users?
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rb
index b991db8dcfb..a266f667f58 100644
--- a/config/constants/settings/definition.rb
+++ b/config/constants/settings/definition.rb
@@ -701,8 +701,8 @@ module Settings
default: 60000
},
oauth_allow_remapping_of_existing_users: {
- description: "When set to false, prevent users from other identity providers to take over accounts connected " \
- "to another identity provider.",
+ description: "When set to false, prevent users from other identity providers to take over accounts " \
+ "that exist in OpenProject.",
default: true
},
omniauth_direct_login_provider: {