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

Generate the secret hash before save rather than after #8410

Merged
merged 1 commit into from Feb 7, 2020

Conversation

escopecz
Copy link
Sponsor Member

@escopecz escopecz commented Feb 7, 2020

Please be sure you are submitting this against the staging branch.

Q A
Bug fix? Y
New feature? N
Automated tests included? /
Related user documentation PR URL /
Related developer documentation PR URL /
Issues addressed (#s or URLs) /
BC breaks? N
Deprecations? N

Description:

The webhook secure hash was generated after the new webhook was saved. The test webhook button then did not use any hash. This PR generates the hash when the form is displayed.

Steps to reproduce the bug:

  1. Go to the new webhook form.
  2. Notice the secure field is empty.

Steps to test this PR:

  1. Load up this PR
  2. Go to the new webhook form.
  3. Notice the secure field is not empty.

@escopecz escopecz added code-review-needed PR's that require a code review before merging T1 Low difficulty to fix (issue) or test (PR) Mautic 3 ready-to-test PR's that are ready to test labels Feb 7, 2020
@escopecz escopecz added this to Needs code review and/or test in Mautic 3 Feb 7, 2020
@escopecz escopecz added this to the 3.0.0 milestone Feb 7, 2020
@escopecz escopecz self-assigned this Feb 7, 2020
@dongilbert dongilbert merged commit dfff77a into mautic:3.x Feb 7, 2020
@alanhartless alanhartless moved this from Needs code review and/or test to Done in Mautic 3 Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-review-needed PR's that require a code review before merging ready-to-test PR's that are ready to test T1 Low difficulty to fix (issue) or test (PR)
Projects
No open projects
Mautic 3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants