Skip to content

Commit df1f07b

Browse files
committed
remove csrf protection 2.0 due to breaking omni-auth
1 parent 2dbbfe2 commit df1f07b

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ gem 'net-pop', '~> 0.1.2'
2020
gem 'net-smtp', '~> 0.5.1'
2121
gem 'omniauth', '~> 2.1.4'
2222
gem 'omniauth-oauth2', '~> 1.8.0'
23-
gem 'omniauth-rails_csrf_protection', '~> 2.0'
23+
gem 'omniauth-rails_csrf_protection', '~> 1.0'
2424
gem 'paper_trail', '~> 17.0.0'
2525
gem 'paranoia', '~> 3.1.0'
2626
gem 'pg', '~> 1.6.2'

Gemfile.lock

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ GEM
318318
omniauth-oauth2 (1.8.0)
319319
oauth2 (>= 1.4, < 3)
320320
omniauth (~> 2.0)
321-
omniauth-rails_csrf_protection (2.0.0)
321+
omniauth-rails_csrf_protection (1.0.2)
322322
actionpack (>= 4.2)
323323
omniauth (~> 2.0)
324324
orm_adapter (0.5.0)
@@ -419,24 +419,8 @@ GEM
419419
tsort
420420
redis (5.4.1)
421421
redis-client (>= 0.22.0)
422-
redis-actionpack (5.5.0)
423-
actionpack (>= 5)
424-
redis-rack (>= 2.1.0, < 4)
425-
redis-store (>= 1.1.0, < 2)
426-
redis-activesupport (5.3.0)
427-
activesupport (>= 3, < 8)
428-
redis-store (>= 1.3, < 2)
429422
redis-client (0.26.1)
430423
connection_pool
431-
redis-rack (3.0.0)
432-
rack-session (>= 0.2.0)
433-
redis-store (>= 1.2, < 2)
434-
redis-rails (5.0.2)
435-
redis-actionpack (>= 5.0, < 6)
436-
redis-activesupport (>= 5.0, < 6)
437-
redis-store (>= 1.2, < 2)
438-
redis-store (1.11.0)
439-
redis (>= 4, < 6)
440424
regexp_parser (2.11.3)
441425
reline (0.6.3)
442426
io-console (~> 0.5)
@@ -643,7 +627,7 @@ DEPENDENCIES
643627
net-smtp (~> 0.5.1)
644628
omniauth (~> 2.1.4)
645629
omniauth-oauth2 (~> 1.8.0)
646-
omniauth-rails_csrf_protection (~> 2.0)
630+
omniauth-rails_csrf_protection (~> 1.0)
647631
paper_trail (~> 17.0.0)
648632
paranoia (~> 3.1.0)
649633
pg (~> 1.6.2)
@@ -656,7 +640,7 @@ DEPENDENCIES
656640
rails-controller-testing (~> 1.0.5)
657641
rails-i18n (~> 7.0.10)
658642
rb-readline (~> 0.5.5)
659-
redis-rails (~> 5.0)
643+
redis (~> 5.0)
660644
rest-client (~> 2.1.0)
661645
rspec-rails (~> 8.0.2)
662646
rubocop (~> 1.81.7)

app/javascript/payment_add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Vue from 'vue/dist/vue.esm';
22
import axios from 'axios';
33

4-
const MIN_PAYMENT_AMOUNT = 20;
4+
const MIN_PAYMENT_AMOUNT = 21.8;
55

66
document.addEventListener('turbo:load', () => {
77
axios.defaults.headers.common['X-CSRF-Token'] = document.querySelector('meta[name="csrf-token"]').getAttribute('content');

0 commit comments

Comments
 (0)