mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Added user certificate REPP endpoint and mailer
This commit is contained in:
parent
a63dc448c3
commit
b558c80e83
7 changed files with 84 additions and 0 deletions
|
@ -36,6 +36,8 @@ class Certificate < ApplicationRecord
|
|||
validate :assign_metadata, on: :create
|
||||
|
||||
def assign_metadata
|
||||
return if errors.any?
|
||||
|
||||
origin = crt ? parsed_crt : parsed_csr
|
||||
parse_metadata(origin)
|
||||
rescue NoMethodError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue