diff --git a/app/controllers/epp_controller.rb b/app/controllers/epp_controller.rb index 47fec1fea..254d79e51 100644 --- a/app/controllers/epp_controller.rb +++ b/app/controllers/epp_controller.rb @@ -1,9 +1,16 @@ class EppController < ApplicationController protect_from_forgery with: :null_session + before_action :generate_svtrid before_action :validate_request layout false helper_method :current_epp_user + def generate_svtrid + # rubocop: disable Style/VariableName + @svTRID = "ccReg-#{format('%010d', rand(10**10))}" + # rubocop: enable Style/VariableName + end + def params_hash # TODO: THIS IS DEPRECATED AND WILL BE REMOVED IN FUTURE @params_hash ||= Hash.from_xml(params[:frame]).with_indifferent_access end