mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Put back password for pki login
This commit is contained in:
parent
fe67c51436
commit
00ecdba699
3 changed files with 12 additions and 16 deletions
|
@ -9,10 +9,7 @@ class Epp::SessionsController < EppController
|
|||
# rubocop: disable Metrics/CyclomaticComplexity
|
||||
def login
|
||||
cert_valid = true
|
||||
# Allow login with only username
|
||||
if request.ip == APP_CONFIG['webclient_ip'] && login_params[:password].nil?
|
||||
@api_user = ApiUser.find_by(username: login_params[:username])
|
||||
elsif request.ip == APP_CONFIG['webclient_ip']
|
||||
if request.ip == APP_CONFIG['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