mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
CRT generation with command line tool
This commit is contained in:
parent
bbe8a780a8
commit
f2c9d18473
3 changed files with 14 additions and 28 deletions
|
@ -12,7 +12,10 @@ class Admin::ApiUsersController < AdminController
|
|||
end
|
||||
|
||||
def create
|
||||
@api_user = ApiUser.new(api_user_params)
|
||||
app = api_user_params
|
||||
app[:csr] = params[:api_user][:csr].open.read if params[:api_user][:csr]
|
||||
|
||||
@api_user = ApiUser.new(app)
|
||||
|
||||
if @api_user.save
|
||||
flash[:notice] = I18n.t('record_created')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue