fix some of the style bugs

This commit is contained in:
Georg Kahest 2017-11-13 18:43:37 +02:00
parent af31230285
commit 3f1c36bd9a
2 changed files with 10 additions and 10 deletions

View file

@ -53,7 +53,7 @@ class Registrar
end
def id
@user = ApiUser.find_by_idc_data_and_allowed(request.env['SSL_CLIENT_S_DN'],request.ip)
@user = ApiUser.find_by_idc_data_and_allowed(request.env['SSL_CLIENT_S_DN'], request.ip)
if @user
sign_in(@user, event: :authentication)

View file

@ -52,7 +52,7 @@ class ApiUser < User
find_by(identity_code: identity_code)
end
def find_by_idc_data_and_allowed(idc_data,ip)
def find_by_idc_data_and_allowed(idc_data, ip)
return false if idc_data.blank?
identity_code = idc_data.scan(/serialNumber=(\d+)/).flatten.first