Skip to content

Commit

Permalink
Remove duplicate omniauth_only? helper method (mastodon#31066)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Jul 25, 2024
1 parent fbf9521 commit 5f53733
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class ApplicationController < ActionController::Base
helper_method :current_theme
helper_method :single_user_mode?
helper_method :use_seamless_external_login?
helper_method :omniauth_only?
helper_method :sso_account_settings
helper_method :limited_federation_mode?
helper_method :body_class_string
Expand Down Expand Up @@ -137,10 +136,6 @@ def use_seamless_external_login?
Devise.pam_authentication || Devise.ldap_authentication
end

def omniauth_only?
ENV['OMNIAUTH_ONLY'] == 'true'
end

def sso_account_settings
ENV.fetch('SSO_ACCOUNT_SETTINGS', nil)
end
Expand Down

0 comments on commit 5f53733

Please sign in to comment.