Skip to content

Improvements at response from API when generate root certificate #1967

@vitormattos

Description

@vitormattos

Scenario

When we don't fill the field "Name (CN)" and click at the button "Generate root certificate" we will see the message:
Screenshot_20231123_144626

We need to see the message:

Name (CN) is required

Tips

Search by 'Name (CN)' in the code and search by 'parameter '{$key}' is required'. You will see that the array with the translated name stay at frontend and the text in backend. You also will found parameters here: apps-extra/libresign/src/helpers/certification.js

To-do

Will be necessary move the parameters names to backend because the validation occur at API side. To do this you will need to move the file apps-extra/libresign/src/helpers/certification.js to be a helper in API side and return this as JSON in an initial state to frontend.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersjavascriptPull requests that update Javascript codephpPull requests that update Php codetechnical debt

Type

No type

Projects

Status

2. in progress

Relationships

None yet

Development

No branches or pull requests

Issue actions