diff --git a/lib/redmine_oauth.rb b/lib/redmine_oauth.rb index 9672074..17d3e7c 100644 --- a/lib/redmine_oauth.rb +++ b/lib/redmine_oauth.rb @@ -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