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 auth_source reference

ulfertsb7e80797acb8
diff --git a/app/models/user.rb b/app/models/user.rb
index ba5e0440919..f94cd4a2355 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -326,8 +326,8 @@ class User < Principal
# If +update_legacy+ is set, will automatically save legacy passwords using the current
# format.
def check_password?(clear_password, update_legacy: true)
- if ldap_auth_source_id.present?
- auth_source.authenticate(login, clear_password)
+ if ldap_auth_source.present?
+ ldap_auth_source.authenticate(login, clear_password)
else
return false if current_password.nil?