From af4ef78e5ff21a305a1c90368af2d36e8d2ef037 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 16 Jan 2015 17:51:37 +0200 Subject: [PATCH] Add back svtrid --- app/controllers/epp_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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