Add back svtrid

This commit is contained in:
Martin Lensment 2015-01-16 17:51:37 +02:00
parent 594b0a5cd7
commit af4ef78e5f

View file

@ -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