mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Revert user cert
This commit is contained in:
parent
037cb57e00
commit
41bb72e043
3 changed files with 5 additions and 96 deletions
|
@ -9,7 +9,7 @@ class ApiUser < User
|
|||
validates :username, :password, :registrar, presence: true
|
||||
validates :username, uniqueness: true
|
||||
|
||||
before_save :create_crt, if: -> (au) { au.csr_changed? }
|
||||
# before_save :create_crt, if: -> (au) { au.csr_changed? }
|
||||
|
||||
attr_accessor :registrar_typeahead
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
%dd -
|
||||
|
||||
%dt= t('crt')
|
||||
- if @api_user.csr
|
||||
%dd= link_to(t('download'), download_crt_admin_api_user_path)
|
||||
- else
|
||||
%dd -
|
||||
/ - if @api_user.csr
|
||||
/ %dd= link_to(t('download'), download_crt_admin_api_user_path)
|
||||
/ - else
|
||||
/ %dd -
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue