mirror of
https://github.com/internetee/registry.git
synced 2025-05-31 09:53:56 +02:00
parent
f6522dd62c
commit
c6aa74529c
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class Epp::SessionsController < EppController
|
|||
end
|
||||
end
|
||||
|
||||
if !webclient_request && @api_user
|
||||
if !Rails.env.development? && (!webclient_request && @api_user)
|
||||
unless @api_user.api_pki_ok?(request.env['HTTP_SSL_CLIENT_CERT'], request.env['HTTP_SSL_CLIENT_S_DN_CN'])
|
||||
epp_errors << {
|
||||
msg: 'Authentication error; server closing connection (certificate is not valid)',
|
||||
|
|
|
@ -97,7 +97,7 @@ class EppController < ApplicationController
|
|||
e_s = epp_session
|
||||
return if e_s.new_record?
|
||||
|
||||
if e_s.updated_at < Time.zone.now - 5.minutes
|
||||
if !Rails.env.development? && (e_s.updated_at < Time.zone.now - 5.minutes)
|
||||
@api_user = current_user # cache current_user for logging
|
||||
e_s.destroy
|
||||
response.headers['X-EPP-Returncode'] = '1500'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue