mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
All required env settings are now checkeda and depricated APP_CONFIG
This commit is contained in:
parent
e238760cef
commit
54b5394196
14 changed files with 61 additions and 47 deletions
|
@ -9,7 +9,7 @@ class Epp::SessionsController < EppController
|
|||
# rubocop: disable Metrics/CyclomaticComplexity
|
||||
def login
|
||||
cert_valid = true
|
||||
if request.ip == APP_CONFIG['webclient_ip']
|
||||
if request.ip == ENV['webclient_ip']
|
||||
@api_user = ApiUser.find_by(login_params)
|
||||
else
|
||||
if request.env['HTTP_SSL_CLIENT_S_DN_CN'] != login_params[:username]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue