mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Calculate md5 differently
This commit is contained in:
parent
ead97b8382
commit
fecb6b40fc
3 changed files with 9 additions and 7 deletions
|
@ -44,9 +44,7 @@ class Registrar::SessionsController < Devise::SessionsController
|
|||
end
|
||||
|
||||
if @depp_user.pki
|
||||
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'])
|
||||
unless @api_user.registrar_pki_ok?(request.env['HTTP_SSL_CLIENT_CERT'], request.env['HTTP_SSL_CLIENT_S_DN_CN'])
|
||||
@depp_user.errors.add(:base, :invalid_cert)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue