Skip to content

Commit

Permalink
Merge pull request #64 from DerDummePunkt/bug_undefined_fields_custom…
Browse files Browse the repository at this point in the history
…_uid_field_custom_email_field

adds `custom_uid_field` and `custom_email_field` to RedmineOauth class.
  • Loading branch information
picman authored Dec 6, 2024
2 parents b371850 + e4d52d0 commit 6d857a4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/redmine_oauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,23 @@ def oauth_version
''
end
end

def custom_uid_field
if Setting.plugin_redmine_oauth['custom_uid_field'].present?
Setting.plugin_redmine_oauth['custom_uid_field'].strip
else
''
end
end

def custom_email_field
if Setting.plugin_redmine_oauth['custom_email_field'].present?
Setting.plugin_redmine_oauth['custom_email_field'].strip
else
''
end
end

end
end

Expand Down

0 comments on commit 6d857a4

Please sign in to comment.