mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Fix services integration after omniauth bump (#173)
This commit is contained in:
parent
86c940c226
commit
ff6f619756
3 changed files with 7 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -97,3 +97,5 @@ group :development, :test do
|
|||
end
|
||||
|
||||
gem "webpacker", "~> 5.2"
|
||||
|
||||
gem "omniauth-rails_csrf_protection", "~> 1.0"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue