mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
add logs
This commit is contained in:
parent
d85b93b8f2
commit
1d853b5da9
2 changed files with 5 additions and 1 deletions
|
@ -150,6 +150,10 @@ module Repp
|
|||
crt = request.headers['User-Certificate']
|
||||
com = request.headers['User-Certificate-CN']
|
||||
|
||||
Rails.logger.info "--------------------------------"
|
||||
Rails.logger.info "Headers: crt=#{crt}, com=#{com}"
|
||||
Rails.logger.info "--------------------------------"
|
||||
|
||||
return if @current_user.pki_ok?(crt, com, api: false)
|
||||
|
||||
render_invalid_cert_response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue