Skip to content

Commit 6d857a4

Browse files
authored
Merge pull request #64 from DerDummePunkt/bug_undefined_fields_custom_uid_field_custom_email_field
adds `custom_uid_field` and `custom_email_field` to RedmineOauth class.
2 parents b371850 + e4d52d0 commit 6d857a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/redmine_oauth.rb

+17
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,23 @@ def oauth_version
197197
''
198198
end
199199
end
200+
201+
def custom_uid_field
202+
if Setting.plugin_redmine_oauth['custom_uid_field'].present?
203+
Setting.plugin_redmine_oauth['custom_uid_field'].strip
204+
else
205+
''
206+
end
207+
end
208+
209+
def custom_email_field
210+
if Setting.plugin_redmine_oauth['custom_email_field'].present?
211+
Setting.plugin_redmine_oauth['custom_email_field'].strip
212+
else
213+
''
214+
end
215+
end
216+
200217
end
201218
end
202219

0 commit comments

Comments
 (0)