-
Notifications
You must be signed in to change notification settings - Fork 166
Account Delete: Require Password (LG-2964) #3775
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
92bd8c9
2c4f378
c9644e9
6c694a2
fdce6de
8ca0f82
889af3b
7aebffc
e5c9ecd
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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <div class="p0 cntnr-xxskinny border-box bg-white rounded-xxl modal-warning"> | ||
|
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. Another slim file bites the dust 💯 |
||
| <h2 class="my2 fs-20p sans-serif regular center"> | ||
| <%= t('users.delete.heading') %> | ||
| </h2> | ||
| <hr class="mb3 bw4 rounded" /> | ||
| <div class="mb1 bold"> | ||
| <%= t('users.delete.subheading') %> | ||
| </div> | ||
| <ul class="px2"> | ||
| <li class="mb1"><%= t('users.delete.bullet_1', app: APP_NAME) %></li> | ||
| <li class="mb1"><%= current_user.decorate.delete_account_bullet_key %></li> | ||
| <li class="mb1"><%= t('users.delete.bullet_3', app: APP_NAME) %></li> | ||
| </ul> | ||
| <div> | ||
| <%= simple_form_for(current_user, url: account_delete_path, | ||
| html: { autocomplete: 'off', method: :post, role: 'form' }) do |f| %> | ||
| <div class="mb3"> | ||
| <%= t('users.delete.instructions') %> | ||
| </div> | ||
| <%= f.input :password, label: t('idv.form.password'), required: true %> | ||
| <%= f.button :submit, | ||
| t('users.delete.actions.delete'), | ||
| class: 'btn btn-primary col-12 mb2 p2 rounded-lg' %> | ||
| <% end %> | ||
|
|
||
| <%= link_to t('users.delete.actions.cancel'), account_path, | ||
| role: 'button', | ||
| class: 'center btn col-12 p2 rounded-lg border border-blue blue border-box' %> | ||
| </div> | ||
| </div> | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,15 +49,6 @@ | |
| end | ||
| end | ||
| end | ||
|
|
||
| scenario 'deleting account' do | ||
|
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. cc @jmhooper this spec checked that we were prompted for 2fa before deleting account, basically testing that the controller inherited from the Reauth controller. I figured that by prompting for the password we'd be OK without, but I think that controller also checks another factor. Do you think it's still OK to remove this?
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. Yep, I think this is obsolete now |
||
| visit account_delete_path | ||
|
|
||
| expect(page).to have_content t('help_text.no_factor.delete_account') | ||
| complete_2fa_confirmation | ||
|
|
||
| expect(current_path).to eq account_delete_path | ||
| end | ||
| end | ||
|
|
||
| def complete_2fa_confirmation | ||
|
|
||
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 noticed reviewing this that this controller doesn't track any analytics events. How'd you feel about adding those here?
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.
Happy to add them! Good idea, thanks