mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Ensure EPP session id is passed
This commit is contained in:
parent
66b03e6d11
commit
17fefcf592
1 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,7 @@ class EppController < ApplicationController
|
||||||
protect_from_forgery with: :null_session
|
protect_from_forgery with: :null_session
|
||||||
skip_before_action :verify_authenticity_token
|
skip_before_action :verify_authenticity_token
|
||||||
|
|
||||||
|
before_action :ensure_session_id_passed
|
||||||
before_action :generate_svtrid
|
before_action :generate_svtrid
|
||||||
before_action :latin_only
|
before_action :latin_only
|
||||||
before_action :validate_against_schema
|
before_action :validate_against_schema
|
||||||
|
@ -377,7 +378,11 @@ class EppController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def epp_session_id
|
def epp_session_id
|
||||||
cookies[:session]
|
cookies[:session] # Passed by mod_epp https://github.com/mod-epp/mod-epp#requestscript-interface
|
||||||
|
end
|
||||||
|
|
||||||
|
def ensure_session_id_passed
|
||||||
|
raise 'EPP session id is empty' unless epp_session_id.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_epp_session
|
def update_epp_session
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue