Revert user cert

This commit is contained in:
Martin Lensment 2015-02-17 10:42:12 +02:00
parent 037cb57e00
commit 41bb72e043
3 changed files with 5 additions and 96 deletions

View file

@ -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

View file

@ -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 -