mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Add back svtrid
This commit is contained in:
parent
594b0a5cd7
commit
af4ef78e5f
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue