Skip to content
Snippets Groups Projects
Commit ef12886d authored by Davide Depau's avatar Davide Depau Committed by Giacomo Vercesi
Browse files

Reformat with RubyMine

parent 15a8274b
No related branches found
No related tags found
No related merge requests found
......@@ -40,11 +40,11 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator
statements
.split("|")
.map do |statement|
attrs = statement.split(":", 2)
next if attrs.count != 2
(result[attrs[0]] ||= []) << attrs[1].split(",")
result[attrs[0]].flatten!
end
attrs = statement.split(":", 2)
next if attrs.count != 2
(result[attrs[0]] ||= []) << attrs[1].split(",")
result[attrs[0]].flatten!
end
result
end
......@@ -267,12 +267,12 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator
statements
.split("|")
.each do |statement|
key, field_id = statement.split(":")
next if key.blank? || field_id.blank?
key, field_id = statement.split(":")
next if key.blank? || field_id.blank?
val = info[key] || attributes.multi(key)&.join(",")
user.custom_fields["user_field_#{field_id}"] = val if val.present?
end
val = info[key] || attributes.multi(key)&.join(",")
user.custom_fields["user_field_#{field_id}"] = val if val.present?
end
end
def sync_moderator(user, attributes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment