diff --git a/app/controllers/admin/api_users_controller.rb b/app/controllers/admin/api_users_controller.rb index 27bed6a80..c3c359e3c 100644 --- a/app/controllers/admin/api_users_controller.rb +++ b/app/controllers/admin/api_users_controller.rb @@ -54,6 +54,6 @@ class Admin::ApiUsersController < AdminController end def api_user_params - params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead) + params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead, :identity_code) end end diff --git a/app/views/admin/api_users/_form.haml b/app/views/admin/api_users/_form.haml index 29f8b1179..9d1a635a5 100644 --- a/app/views/admin/api_users/_form.haml +++ b/app/views/admin/api_users/_form.haml @@ -14,6 +14,9 @@ .form-group = f.label :password = f.text_field(:password, class: 'form-control') + .form-group + = f.label :identity_code + = f.text_field(:identity_code, class: 'form-control') .form-group .form-group.has-feedback.js-typeahead-container = f.label :registrar_typeahead, t('registrar')