summaryrefslogtreecommitdiff
path: root/app/helpers/profiles_helper.rb
blob: 45238f12ac7d1ae9598d33e15a3ebf5d2e3013f6 (plain)
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