Skip to content

LG-9561: Limit requesting new GPO codes to 30 days after initial request#8363

Merged
matthinz merged 7 commits intomainfrom
matthinz/9561-gpo-send-another-letter-timeout
May 11, 2023
Merged

LG-9561: Limit requesting new GPO codes to 30 days after initial request#8363
matthinz merged 7 commits intomainfrom
matthinz/9561-gpo-send-another-letter-timeout

Conversation

@matthinz
Copy link
Copy Markdown
Contributor

@matthinz matthinz commented May 8, 2023

🎫 Ticket

LG-9561

🛠 Summary of changes

Add a new config, gpo_max_profile_age_to_send_letter_in_days, which can be used to limit the amount of time after a profile is first created we allow requesting a GPO letter to verify it. The default value for this config is 30 days, calculated from the created_at of the Profile.

When the user is outside this window of time, they are no longer offered the option to "Send me another letter" on the GPO verification page--they can either enter the OTP that was already mailed to them or restart the proofing process.

@matthinz matthinz force-pushed the matthinz/9561-gpo-send-another-letter-timeout branch from 397a195 to 1bd5aa4 Compare May 10, 2023 21:31
@matthinz matthinz changed the title WIP: Limit requesting new GPO codes to 30 days after initial request LG-9561: Limit requesting new GPO codes to 30 days after initial request May 10, 2023
@matthinz matthinz marked this pull request as ready for review May 10, 2023 21:46
Copy link
Copy Markdown
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@matthinz matthinz merged commit c58e368 into main May 11, 2023
@matthinz matthinz deleted the matthinz/9561-gpo-send-another-letter-timeout branch May 11, 2023 15:30
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.

3 participants