Renamed back accounts controller & modified auth validations

This commit is contained in:
Sergei Tsõganov 2022-06-14 11:14:27 +03:00
parent 9f6c628453
commit a44ac5359d
4 changed files with 13 additions and 14 deletions

View file

@ -61,8 +61,6 @@ class ApiUser < User
end
def pki_ok?(crt, com, api: true)
p crt
p com
return false if crt.blank? || com.blank?
origin = api ? certificates.api : certificates.registrar