Fix services integration after omniauth bump (#173)

This commit is contained in:
Erik 2021-04-25 15:56:37 -04:00 committed by GitHub
parent 86c940c226
commit ff6f619756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -97,3 +97,5 @@ group :development, :test do
end
gem "webpacker", "~> 5.2"
gem "omniauth-rails_csrf_protection", "~> 1.0"

View file

@ -327,6 +327,9 @@ GEM
omniauth-oauth (1.2.0)
oauth
omniauth (>= 1.0, < 3)
omniauth-rails_csrf_protection (1.0.0)
actionpack (>= 4.2)
omniauth (~> 2.0)
omniauth-tumblr (1.2)
multi_json
omniauth-oauth (~> 1.0)
@ -596,6 +599,7 @@ DEPENDENCIES
mini_magick
newrelic_rpm
omniauth
omniauth-rails_csrf_protection (~> 1.0)
omniauth-tumblr
omniauth-twitter
pg

View file

@ -7,7 +7,7 @@
- APP_CONFIG['sharing'].each do |service, service_options|
- if service_options['enabled'] && @services.none? { |x| x.provider == service.to_s }
%p= link_to t('views.settings.service.connect', service: service.capitalize), "/auth/#{service}"
%p= link_to t('views.settings.service.connect', service: service.capitalize), "/auth/#{service}", method: :post
- if @services.count.positive?
%ul.list-group