Skip to content

Conversation

eduardoboucas
Copy link
Contributor

@eduardoboucas eduardoboucas commented Aug 15, 2018

This PR makes it so that non-admin clients can only update their own secret if they supply the current secret in the payload of the PUT request as a currentSecret property.

Failing to supply a valid secret will abort the update operation and throw a 400 error.

Closes #474.

case 'INVALID_SECRET':
return help.sendBackJSON(400, res, next)(null, {
success: false,
errors: ['The current secret supplied is not valid']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change to "The supplied current secret is not valid"

@eduardoboucas eduardoboucas merged commit e3f97d8 into develop Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants