Fix services integration after omniauth bump (#173)
This commit is contained in:
parent
86c940c226
commit
ff6f619756
2
Gemfile
2
Gemfile
|
@ -97,3 +97,5 @@ group :development, :test do
|
||||||
end
|
end
|
||||||
|
|
||||||
gem "webpacker", "~> 5.2"
|
gem "webpacker", "~> 5.2"
|
||||||
|
|
||||||
|
gem "omniauth-rails_csrf_protection", "~> 1.0"
|
||||||
|
|
|
@ -327,6 +327,9 @@ GEM
|
||||||
omniauth-oauth (1.2.0)
|
omniauth-oauth (1.2.0)
|
||||||
oauth
|
oauth
|
||||||
omniauth (>= 1.0, < 3)
|
omniauth (>= 1.0, < 3)
|
||||||
|
omniauth-rails_csrf_protection (1.0.0)
|
||||||
|
actionpack (>= 4.2)
|
||||||
|
omniauth (~> 2.0)
|
||||||
omniauth-tumblr (1.2)
|
omniauth-tumblr (1.2)
|
||||||
multi_json
|
multi_json
|
||||||
omniauth-oauth (~> 1.0)
|
omniauth-oauth (~> 1.0)
|
||||||
|
@ -596,6 +599,7 @@ DEPENDENCIES
|
||||||
mini_magick
|
mini_magick
|
||||||
newrelic_rpm
|
newrelic_rpm
|
||||||
omniauth
|
omniauth
|
||||||
|
omniauth-rails_csrf_protection (~> 1.0)
|
||||||
omniauth-tumblr
|
omniauth-tumblr
|
||||||
omniauth-twitter
|
omniauth-twitter
|
||||||
pg
|
pg
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
- APP_CONFIG['sharing'].each do |service, service_options|
|
- APP_CONFIG['sharing'].each do |service, service_options|
|
||||||
- if service_options['enabled'] && @services.none? { |x| x.provider == service.to_s }
|
- 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?
|
- if @services.count.positive?
|
||||||
%ul.list-group
|
%ul.list-group
|
||||||
|
|
Loading…
Reference in New Issue