Remove EPP session timeout and certificate check in dev env

#284
This commit is contained in:
Artur Beljajev 2016-12-16 05:31:57 +02:00
parent f6522dd62c
commit c6aa74529c
2 changed files with 2 additions and 2 deletions

View file

@ -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)',