chore: Suppress the unnecessary CSRF warning (#2606)

Suppress the unnecessary CSRF warning
This commit is contained in:
Sojan Jose
2021-07-14 18:40:24 +05:30
committed by GitHub
parent dfddf9cacc
commit a5bc81b304
13 changed files with 11 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
class Api::V1::AccountsController < Api::BaseController
include AuthHelper
skip_before_action :verify_authenticity_token, only: [:create]
skip_before_action :authenticate_user!, :set_current_user, :handle_with_exception,
only: [:create], raise: false
before_action :check_signup_enabled, only: [:create]