-
Notifications
You must be signed in to change notification settings - Fork 166
LG-13138 Avoid sending account reset notification on duplicate submission #12205
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
Changes from all commits
648c447
034f30a
6b66a7f
542a916
3f62400
38fc78c
10e130d
2745493
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,15 @@ | |
| <p><%= t('account_reset.request.delete_email2_html', interval: @account_reset_deletion_period_interval) %></p> | ||
|
|
||
| <p><strong><%= t('account_reset.request.continue_deletion') %></strong></p> | ||
| <%= button_to( | ||
| account_reset_request_path, | ||
| form_class: 'margin-top-4 margin-bottom-2', | ||
| class: 'usa-button usa-button--big usa-button--wide', | ||
| method: :post, | ||
| ) { t('account_reset.request.yes_continue') } %> | ||
|
|
||
| <%= simple_form_for( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mentioned here, but I think a more comprehensive mitigation is needed based on reading the ticket
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added rate limiting with d4577ff |
||
| :account_reset, | ||
| url: account_reset_request_path, | ||
| method: 'POST', | ||
| ) do |f| %> | ||
| <%= f.submit(t('account_reset.request.yes_continue'), data: { disable_with: 'Confirming...' }, class: 'margin-bottom-2') %> | ||
| <% end %> | ||
|
|
||
| <%= button_to( | ||
| root_url, | ||
| method: :get, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,8 @@ aamva_verification_request_timeout: 5.0 | |
| aamva_verification_url: https://example.org:12345/verification/url | ||
| account_creation_device_profiling: disabled | ||
| account_reset_fraud_user_wait_period_days: | ||
| account_reset_request_attempt_window_in_minutes: 2 | ||
| account_reset_request_max_attempts: 2 | ||
| account_reset_token_valid_for_days: 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have strong opinions on what the values here should be, but it should be monitored for potential adjustments |
||
| account_reset_wait_period_days: 1 | ||
| account_suspended_support_code: EFGHI | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if account reset request isnt created? right now it looks like we take them to account reset confirm, this could cause confusion for users that may hit this limit naturally especially if its 2 requests per 2 days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set the limiter to 2 minutes because the real world thing this is trying to prevent (the controller not POSTing in time with button mashing) I expect should be over by then. 542a916