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

Fix newsletter management page form submission when cookie has expired (Fixes #13324) #13448

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Jul 26, 2023

One-line summary

Stores token in local memory so that the form still works even if left open for a long period of time.

Significant changes and points to review

Rather than wait for an hour for the cookie to expire, the easiest way to test this is to delete the nl-token cookie after the page has loaded, and then hit submit after that.

Issue / Bugzilla link

#13324

Testing

First get your token here: https://www.mozilla.org/en-US/newsletter/recovery/

Then open http://localhost:8000/en-US/newsletter/existing/YOUR_TOKEN_HERE/

@alexgibson alexgibson added P3 Third level priority - Nice to have Needs Review Awaiting code review Review: XS Code review time: up to 30min labels Jul 26, 2023
@reemhamz reemhamz self-assigned this Jul 31, 2023
Copy link
Contributor

@reemhamz reemhamz left a comment

Choose a reason for hiding this comment

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

LGTM 🦊r+

@reemhamz reemhamz merged commit 7a59e5d into mozilla:main Jul 31, 2023
3 checks passed
@alexgibson alexgibson deleted the newsletter-cookie-fix branch July 31, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting code review P3 Third level priority - Nice to have Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants