Require authentication on EPP logout

#700
This commit is contained in:
Artur Beljajev 2018-02-14 01:17:51 +02:00
parent 2ce4fa9ce0
commit ec43586ef4
3 changed files with 44 additions and 17 deletions

View file

@ -397,4 +397,14 @@ class EppController < ApplicationController
name = self.class.to_s.sub("Epp::","").sub("Controller","").underscore.singularize
instance_variable_get("@#{name}")
end
private
def signed_in?
epp_session
end
def epp_session_id
cookies[:session]
end
end