BigW Consortium Gitlab

profiles_helper.rb 222 Bytes
Newer Older
1 2 3 4 5 6 7
module ProfilesHelper
  def email_provider_label
    return unless current_user.external_email?

    current_user.email_provider.present? ? Gitlab::OAuth::Provider.label_for(current_user.email_provider) : "LDAP"
  end
end