Enable certificate creating on api users

This commit is contained in:
Martin Lensment 2015-02-19 17:48:30 +02:00
parent 0f3c8ba944
commit 4f290bc9fe
2 changed files with 4 additions and 3 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