Merge pull request #699 from internetee/registry-698

Init cookies
This commit is contained in:
Timo Võhmar 2018-02-06 18:47:07 +02:00 committed by GitHub
commit 04ea3d506c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,7 @@ class EppController < ApplicationController
# SESSION MANAGEMENT
def epp_session
cookies # Probably does some initialization
cookie = env['rack.request.cookie_hash'] || {}
EppSession.find_or_initialize_by(session_id: cookie['session'])
end