Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed validation response from acme_accounts #6604

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- [#6538](https://github.com/apache/trafficcontrol/pull/6538) Fixed the incorrect use of secure.port on TrafficRouter and corrected to the httpsPort value from the TR server configuration.
- [#6562](https://github.com/apache/trafficcontrol/pull/6562) Fixed incorrect template in Ansible dataset loader role when fallbackToClosest is defined.
- [#6590](https://github.com/apache/trafficcontrol/pull/6590) Python client: Corrected parameter name in decorator for get_parameters_by_profile_id
- [#6368](https://github.com/apache/trafficcontrol/pull/6368) Fixed validation response message from `/acme_accounts`

### Removed
- Remove traffic_portal dependencies to mitigate `npm audit` issues, specifically `grunt-concurrent`, `grunt-contrib-concat`, `grunt-contrib-cssmin`, `grunt-contrib-jsmin`, `grunt-contrib-uglify`, `grunt-contrib-htmlmin`, `grunt-newer`, and `grunt-wiredep`
Expand Down
8 changes: 4 additions & 4 deletions lib/go-tc/acme_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ type AcmeAccount struct {
// Validate validates the AcmeAccount request is valid for creation or update.
func (aa *AcmeAccount) Validate(tx *sql.Tx) error {
errs := validation.Errors{
"email": validation.Validate(aa.Email, validation.Required),
"private_key": validation.Validate(aa.PrivateKey, validation.Required),
"uri": validation.Validate(aa.Uri, validation.Required),
"provider": validation.Validate(aa.Provider, validation.Required),
"email": validation.Validate(aa.Email, validation.Required),
"privateKey": validation.Validate(aa.PrivateKey, validation.Required),
"uri": validation.Validate(aa.Uri, validation.Required),
"provider": validation.Validate(aa.Provider, validation.Required),
}

return util.JoinErrs(tovalidate.ToErrors(errs))
Expand Down