mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Debugging
This commit is contained in:
parent
b9d3787a73
commit
ead97b8382
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ class Registrar::SessionsController < Devise::SessionsController
|
|||
end
|
||||
|
||||
if @depp_user.pki
|
||||
logger.error request.env['HTTP_SSL_CLIENT_CERT']
|
||||
logger.error Digest::MD5.hexdigest(request.env['HTTP_SSL_CLIENT_CERT'])
|
||||
logger.error @api_user.certificates.registrar.pluck(:md5)
|
||||
unless @api_user.registrar_pki_ok?(request.env['HTTP_SSL_CLIENT_CERT'])
|
||||
@depp_user.errors.add(:base, :invalid_cert)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue