Skip to content

Commit

Permalink
adds custom_uid_field and custom_email_field to RedmineOauth class.
Browse files Browse the repository at this point in the history
fixes #63
  • Loading branch information
DerDummePunkt committed Dec 6, 2024
1 parent 44c3824 commit e4d52d0
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 e4d52d0

Please sign in to comment.