Disable authentication for API
Some checks failed
Ruby on Rails Test / rails-test (push) Has been cancelled

This commit is contained in:
kbe
2025-09-15 17:15:49 +02:00
parent 91e6425c1e
commit 82f0fab1f5
2 changed files with 5 additions and 1 deletions

View File

@@ -43,6 +43,8 @@
- [ ] feat: Fraud prevention and bot protection - [ ] feat: Fraud prevention and bot protection
- [ ] feat: Social login options - [ ] feat: Social login options
- [ ] feat: Event recommendations system - [ ] feat: Event recommendations system
- [ ] feat: Invitation link. As organizer or promoter, you can invite people
### Design & Infrastructure ### Design & Infrastructure

View File

@@ -4,7 +4,9 @@
module Api module Api
module V1 module V1
class OrdersController < ApiController class OrdersController < ApiController
before_action :authenticate_user! # Skip API key authentication for store_cart action (used by frontend forms)
skip_before_action :authenticate_api_key, only: [ :store_cart ]
before_action :set_order, only: [ :show, :checkout, :retry_payment, :increment_payment_attempt ] before_action :set_order, only: [ :show, :checkout, :retry_payment, :increment_payment_attempt ]
before_action :set_event, only: [ :new, :create ] before_action :set_event, only: [ :new, :create ]