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

LG-3839 Change SSN and mailing address #5144

Merged
merged 11 commits into from Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 43 additions & 0 deletions app/views/idv/doc_auth/_ssn_init.html.erb
@@ -0,0 +1,43 @@
<% title t('titles.doc_auth.verify') %>

<%= render 'shared/alert', {
type: 'success',
class: 'margin-bottom-4'
} do %>
<%= t('doc_auth.headings.capture_complete') %>
<% end %>

<h1 class='margin-y-0'>
<%= t('doc_auth.headings.ssn') %>
</h1>

<%= validated_form_for(
:doc_auth,
url: url_for,
method: :put,
html: { autocomplete: 'off', class: 'margin-top-2' }
) do |f| %>
<div class='clearfix margin-x-neg-1'>
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'>
<!-- maxlength set and includes '-' delimiters to work around cleave bug -->
<%= f.input(
:ssn,
as: :password,
label: t('idv.form.ssn_label_html'),
required: true,
pattern: '^\d{3}-?\d{2}-?\d{4}$',
maxlength: 11,
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' }
) %>
</div>
</div>

<p><%= flow_session[:error_message] %></p>

<div class='margin-top-0'>
<button type='submit' class='usa-button usa-button--big usa-button--wide'>
<%= t('forms.buttons.continue') %>
</button>
</div>
<% end %>
<%= render 'idv/doc_auth/start_over_or_cancel', step: 'ssn' %>
41 changes: 41 additions & 0 deletions app/views/idv/doc_auth/_ssn_update.html.erb
@@ -0,0 +1,41 @@
<% title t('titles.doc_auth.verify') %>

<h1>
<%= t('doc_auth.headings.ssn_update') %>
</h1>

<p>
<%= t('doc_auth.info.ssn') %>
<%= new_window_link_to(t('doc_auth.instructions.learn_more'), MarketingSite.security_and_privacy_practices_url) %>
</p>

<%= validated_form_for(
:doc_auth,
url: url_for,
method: :put,
html: { autocomplete: 'off', class: 'margin-top-2' }
) do |f| %>
<div class='clearfix margin-x-neg-1'>
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'>
<!-- maxlength set and includes '-' delimiters to work around cleave bug -->
<%= f.input(
:ssn,
as: :password,
label: t('idv.form.ssn_label_html'),
required: true,
pattern: '^\d{3}-?\d{2}-?\d{4}$',
maxlength: 11,
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' }
) %>
</div>
</div>

<p><%= flow_session[:error_message] %></p>

<div class='margin-top-0'>
<button type='submit' class='usa-button usa-button--big usa-button--wide'>
<%= t('forms.buttons.submit.update') %>
</button>
</div>
<% end %>
<%= render 'idv/doc_auth/start_over_or_cancel', step: 'ssn' %>
stevegsa marked this conversation as resolved.
Show resolved Hide resolved
46 changes: 4 additions & 42 deletions app/views/idv/doc_auth/ssn.html.erb
@@ -1,43 +1,5 @@
<% title t('titles.doc_auth.verify') %>

<%= render 'shared/alert', {
type: 'success',
class: 'margin-bottom-4'
} do %>
<%= t('doc_auth.headings.capture_complete') %>
<% if flow_session['pii_from_doc']['ssn'] %>
<%= render 'idv/doc_auth/ssn_update', flow_session: flow_session %>
<% else %>
<%= render 'idv/doc_auth/ssn_init', flow_session: flow_session %>
<% end %>

<h1 class='margin-y-0'>
<%= t('doc_auth.headings.ssn') %>
</h1>

<%= validated_form_for(
:doc_auth,
url: url_for,
method: :put,
html: { autocomplete: 'off', class: 'margin-top-2' }
) do |f| %>
<div class='clearfix margin-x-neg-1'>
<div class='sm-col sm-col-8 padding-x-1 margin-top-2'>
<!-- maxlength set and includes '-' delimiters to work around cleave bug -->
<%= f.input(
:ssn,
as: :password,
label: t('idv.form.ssn_label_html'),
required: true,
pattern: '^\d{3}-?\d{2}-?\d{4}$',
maxlength: 11,
input_html: { aria: { invalid: false }, class: 'ssn ssn-toggle', value: '' }
) %>
</div>
</div>

<p><%= flow_session[:error_message] %></p>

<div class='margin-top-0'>
<button type='submit' class='usa-button usa-button--big usa-button--wide'>
<%= t('forms.buttons.continue') %>
</button>
</div>
<% end %>
<%= render 'idv/doc_auth/start_over_or_cancel', step: 'ssn' %>
7 changes: 6 additions & 1 deletion config/locales/doc_auth/en.yml
Expand Up @@ -107,7 +107,7 @@ en:
state: State
zip_code: Zip Code
headings:
address: Mailing Address
address: Update your mailing address
back: Back
capture_complete: We have verified your state-issued ID
document_capture: Add your state-issued ID
Expand All @@ -124,6 +124,7 @@ en:
secure_account: Secure your account
selfie: Take a photo of yourself
ssn: Please enter your social security number.
ssn_update: Update your social security number
take_picture: Take a photo with a phone
text_message: We sent a message to your phone
upload: How would you like to upload your state-issued ID?
Expand Down Expand Up @@ -162,6 +163,10 @@ en:
secure_account: After you verify, we’ll ask you to encrypt your account.
Encryption means your data is protected and only you, the account
holder, will be able to access or change your information.
ssn: We need your Social Security number to validate your name, date of birth
and address. Your Social Security number is encrypted. With your
consent, we share this information with the government agency you are
trying to access to verify your identity.
stevegsa marked this conversation as resolved.
Show resolved Hide resolved
tag: Recommended
take_picture: Use the camera on your mobile phone and upload images of your
ID. We only use the images to verify your identity.
Expand Down
8 changes: 7 additions & 1 deletion config/locales/doc_auth/es.yml
Expand Up @@ -133,7 +133,7 @@ es:
state: Estado
zip_code: Código postal
headings:
address: Dirección de envio
address: Actualice su dirección postal
back: Parte Trasera
capture_complete: Hemos verificado su identificación expedida por el estado
document_capture: Añada su documento de identidad expedido por el estado
Expand All @@ -150,6 +150,7 @@ es:
secure_account: Asegure su cuenta
selfie: Tómese una foto
ssn: Por favor ingrese su número de seguro social.
ssn_update: Actualice su número de seguro social
take_picture: Toma una foto con un teléfono
text_message: Enviamos un mensaje a su teléfono
upload: '¿Cómo le gustaría subir su documento de identidad expedido por el
Expand Down Expand Up @@ -193,6 +194,11 @@ es:
su cuenta. Con el cifrado, sus datos quedan protegidos, por lo que solo
usted, el titular de la cuenta, puede acceder a su información o
modificarla.
ssn: Necesitamos su número de Seguro Social para validar su nombre, fecha de
nacimiento y habla a. Su número de Seguro Social está encriptado. Con su
consentimiento, compartimos este información con la agencia
gubernamental a la que está intentando acceder para verificar su
identidad.
tag: Recomendado
take_picture: Use la cámara en su teléfono móvil y cargue imágenes de su
identificación. Solo usamos las imágenes para verificar su identidad.
Expand Down
8 changes: 7 additions & 1 deletion config/locales/doc_auth/fr.yml
Expand Up @@ -138,7 +138,7 @@ fr:
state: Etat
zip_code: Code postal
headings:
address: Adresse mail
address: Mettre à jour votre adresse postale
back: Verso
capture_complete: Nous avons vérifié votre carte d’identité délivrée par l’État
document_capture: Ajoutez votre carte d’identité délivrée par l’État
Expand All @@ -155,6 +155,7 @@ fr:
secure_account: Sécuriser votre compte
selfie: Prenez une photo de vous-même
ssn: S’il vous plaît entrez votre numéro de sécurité sociale.
ssn_update: Mettre à jour votre numéro de sécurité sociale
take_picture: Prendre une photo avec un téléphone
text_message: Nous avons envoyé un message à votre téléphone
upload: Comment souhaitez-vous télécharger votre carte d’identité délivrée par
Expand Down Expand Up @@ -202,6 +203,11 @@ fr:
crypter votre compte. Le cryptage garantit la protection de vos données
et seul vous, le titulaire du compte, pourrez accéder à vos informations
ou les modifier.
ssn: Nous avons besoin de votre numéro de sécurité sociale pour valider votre
nom, date de naissance et adresse. Votre numéro de sécurité sociale est
crypté. Avec votre accord, nous partageons ce informations auprès de
l'agence gouvernementale à laquelle vous essayez d'accéder pour vérifier
votre identité.
tag: Recommandation
take_picture: Utilisez l’appareil photo sur votre téléphone portable et
téléchargez des images de votre identifiant. Nous utilisons uniquement
Expand Down
1 change: 1 addition & 0 deletions spec/features/idv/doc_auth/verify_step_spec.rb
Expand Up @@ -55,6 +55,7 @@
click_button t('doc_auth.buttons.change_ssn')

expect(page).to have_current_path(idv_doc_auth_ssn_step)
expect(page).to have_content(t('doc_auth.headings.ssn_update'))
end

it 'does not proceed to the next page if resolution fails' do
Expand Down