mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Ignore webclient ip in development mode #2765
This commit is contained in:
parent
9fd38f161a
commit
b25aa80794
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Epp::SessionsController < EppController
|
|||
success = true
|
||||
@api_user = ApiUser.find_by(login_params)
|
||||
|
||||
if request.ip == ENV['webclient_ip'] && !Rails.env.test?
|
||||
if request.ip == ENV['webclient_ip'] && (!Rails.env.test? || !Rails.env.development?)
|
||||
client_md5 = Certificate.parse_md_from_string(request.env['HTTP_SSL_CLIENT_CERT'])
|
||||
server_md5 = Certificate.parse_md_from_string(File.read(ENV['cert_path']))
|
||||
if client_md5 != server_md5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue