diff --git a/app/models/user.rb b/app/models/user.rb index 46cfa4074df..2402ac06b35 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -96,6 +96,10 @@ def active_identities identities.where('session_uuid IS NOT ?', nil).order(last_authenticated_at: :asc) || [] end + def active_profile? + active_profile.present? + end + def active_profile return @active_profile if defined?(@active_profile) && @active_profile&.active @active_profile = profiles.verified.find(&:active?) diff --git a/app/presenters/idv/welcome_presenter.rb b/app/presenters/idv/welcome_presenter.rb index fa8df449334..c9a3c2c57b2 100644 --- a/app/presenters/idv/welcome_presenter.rb +++ b/app/presenters/idv/welcome_presenter.rb @@ -22,21 +22,16 @@ def title t('doc_auth.headings.welcome', sp_name: sp_name) end - def selfie_required? - decorated_sp_session.selfie_required? - end - def explanation_text(help_link) - if step_up_selfie_required? + if first_time_idv? t( - 'doc_auth.info.stepping_up_html', + 'doc_auth.info.getting_started_html', sp_name:, link_html: help_link, ) else t( - 'doc_auth.info.getting_started_html', - sp_name: sp_name, + 'doc_auth.info.stepping_up_html', link_html: help_link, ) end @@ -44,17 +39,10 @@ def explanation_text(help_link) def bullet_points [ - if selfie_required? - bullet_point( - t('doc_auth.instructions.bullet1_with_selfie'), - t('doc_auth.instructions.text1_with_selfie'), - ) - else - bullet_point( - t('doc_auth.instructions.bullet1'), - t('doc_auth.instructions.text1'), - ) - end, + bullet_point( + t('doc_auth.instructions.bullet1'), + t('doc_auth.instructions.text1'), + ), bullet_point( t('doc_auth.instructions.bullet2'), @@ -85,9 +73,8 @@ def bullet_point(bullet, text) OpenStruct.new(bullet: bullet, text: text) end - def step_up_selfie_required? - !!(current_user&.identity_verified? || current_user&.pending_profile?) && - selfie_required? + def first_time_idv? + !decorated_sp_session&.current_user&.active_profile? end end end diff --git a/config/locales/doc_auth/en.yml b/config/locales/doc_auth/en.yml index 734145929a0..61d83feddc3 100644 --- a/config/locales/doc_auth/en.yml +++ b/config/locales/doc_auth/en.yml @@ -236,8 +236,7 @@ en: too_many_faces: Too many faces ssn: We need your Social Security number to verify your name, date of birth and address. - stepping_up_html: 'Verify your identity again and take a photo of yourself to - access this service. %{link_html}' + stepping_up_html: 'Verify your identity again to access this service. %{link_html}' tag: Recommended upload_from_computer: Don’t have a phone? Upload photos of your ID from this computer. upload_from_phone: You won’t have to sign in again, and you’ll switch back to @@ -256,8 +255,7 @@ en: verify_online_link_text: Learn more about verifying online you_entered: 'You entered:' instructions: - bullet1: Take photos of your ID - bullet1_with_selfie: Take photos of yourself and your ID + bullet1: Have a driver’s license or state ID bullet2: Enter your Social Security number bullet3: Match to your phone number bullet4: Re-enter your %{app_name} password @@ -270,13 +268,11 @@ en: switch_back_image: Arrow pointing from phone to computer test_ssn: In the test environment only SSNs that begin with “900-” or “666-” are considered valid. Do not enter real PII in this field. - text1: Use your driver’s license or state ID card. Other forms of ID are not - accepted. - text1_with_selfie: Take a photo of yourself and take photos of your driver’s - license or state ID card. Other forms of ID are not accepted. + text1: Other forms of ID are not accepted. We’ll check that you are the person + on your ID. text2: You will not need your physical SSN card. - text3: Your phone number matches you to your personal information. After you - match, we’ll send you a code. + text3: We match your phone number with your personal information and send a + one-time code to your phone. text4: Your password saves and encrypts your personal information. tips: document_capture_hint: Must be a JPG or PNG diff --git a/config/locales/doc_auth/es.yml b/config/locales/doc_auth/es.yml index c6d05cc9a55..a5109720cd5 100644 --- a/config/locales/doc_auth/es.yml +++ b/config/locales/doc_auth/es.yml @@ -211,7 +211,7 @@ es: verify_at_post_office: Verifique su identidad en una oficina de correos verify_identity: Verifique su identidad verify_online: Verifique su identidad en línea - welcome: Vamos a verificar tu identidad para %{sp_name} + welcome: 'Verifiquemos su identidad para
%{sp_name}' hybrid_flow_warning: explanation_html: Usted está utilizando %{app_name} para verificar su identidad y acceder a @@ -236,9 +236,9 @@ es: exit: with_sp: Salir de %{app_name} y volver a %{sp_name} without_sp: Salir de la verificación de identidad e ir a la página de su cuenta - getting_started_html: '%{sp_name} necesita asegurarse de que es usted y no es - alguien que se hace pasar por usted. %{link_html}' - getting_started_learn_more: Obtén más información sobre la verificación de tu identidad + getting_started_html: '%{sp_name} necesita asegurarse de que se trata de usted y + no de alguien que se hace pasar por usted. %{link_html}' + getting_started_learn_more: Obtenga más información sobre la verificación de su identidad how_to_verify: Tiene la opción de verificar su identidad en línea o en persona en una oficina de correos participante. how_to_verify_troubleshooting_options_header: ¿Quiere saber más sobre cómo verificar su identidad? @@ -275,8 +275,8 @@ es: too_many_faces: Demasiados rostros ssn: Necesitamos su número de Seguro Social para validar su nombre, fecha de nacimiento y dirección. - stepping_up_html: 'Verifica tu identidad de nuevo y tómate una foto para acceder - a este servicio. %{link_html}' + stepping_up_html: 'Verifica su identidad de nuevo para acceder a este servicio. + %{link_html}' tag: Recomendado upload_from_computer: ¿No tiene teléfono? Suba fotos de su documento de identidad desde esta computadora. @@ -300,30 +300,26 @@ es: verify_online_link_text: Obtenga más información sobre la verificación en línea you_entered: 'Ud. entregó:' instructions: - bullet1: Tomar fotos de tu identificación oficial - bullet1_with_selfie: Tomar fotos tuyas y de tu identificación oficial - bullet2: Ingresar tu Número de Seguro Social - bullet3: Confirmar tu número de teléfono - bullet4: Ingresar de nuevo tu contraseña de %{app_name} + bullet1: Tener una licencia de conducir o una tarjeta de identificación estatal + bullet2: Ingresar su número de Seguro Social + bullet3: Hacer coincidir su número de teléfono + bullet4: Volver a ingresar su contraseña de %{app_name} consent: Al marcar esta casilla, usted permite que %{app_name} solicite, utilice, conserve y comparta su información personal. Los utilizamos para verificar su identidad. - getting_started: 'Necesitarás:' + getting_started: 'Necesitará:' learn_more: Obtenga más información sobre nuestras medidas de privacidad y seguridad switch_back: Regrese a su computadora para continuar con la verificación de su identidad. switch_back_image: Flecha que apunta del teléfono a la computadora test_ssn: En el entorno de prueba solo los SSN que comienzan con “900-” o “666-” se consideran válidos. No ingrese PII real en este campo. - text1: Utiliza tu licencia de conducir o identificación oficial estatal. No - aceptamos ningún otro tipo de identificación. - text1_with_selfie: Tómate una foto y toma fotografías de tu licencia de conducir - o identificación oficial estatal. No aceptamos ningún otro tipo de - identificación. - text2: No necesitarás tu tarjeta física del seguro social. - text3: Tu número de teléfono te vincula con tu información personal. Luego de - confirmar tu información, te enviaremos un código. - text4: Tu contraseña permitirá guardar y encriptar tu información personal. + text1: No se aceptan otras formas de identificación. Revisaremos que usted sea + la persona que figura en su identificación. + text2: No necesita la tarjeta física del Seguro Social. + text3: Revisamos que su número de teléfono coincida con su información personal + y enviamos un código de un solo uso a su teléfono. + text4: Su contraseña guarda y cifra su información personal. tips: document_capture_hint: Debe ser un JPG o PNG document_capture_id_text1: Use un fondo oscuro diff --git a/config/locales/doc_auth/fr.yml b/config/locales/doc_auth/fr.yml index 30b9e236d0c..2d0e0c5c4b2 100644 --- a/config/locales/doc_auth/fr.yml +++ b/config/locales/doc_auth/fr.yml @@ -221,7 +221,7 @@ fr: verify_at_post_office: Vérifiez votre identité un bureau de poste verify_identity: Vérifier votre identité verify_online: Vérifiez votre identité en ligne - welcome: Vérifions votre identité pour %{sp_name} + welcome: Vérifions votre identité auprès de %{sp_name} hybrid_flow_warning: explanation_html: Vous utilisez %{app_name} pour vérifier votre identité et accéder à %{service_provider_name} et à ses @@ -245,9 +245,9 @@ fr: exit: with_sp: Quittez %{app_name} et retournez à %{sp_name} without_sp: Quittez la vérification d’identité et accédez à la page de votre compte - getting_started_html: '%{sp_name} doit s’assurer que vous êtes bien vous, et non - quelqu’un qui se fait passer pour vous. %{link_html}' - getting_started_learn_more: Pour plus d’informations sur la vérification de votre identité + getting_started_html: '%{sp_name} doit s’assurer qu’il s’agit bien de vous et + non de quelqu’un qui se fait passer pour vous. %{link_html}' + getting_started_learn_more: En savoir plus sur la vérification de votre identité how_to_verify: Vous avez la possibilité de vérifier votre identité en ligne ou en personne dans un bureau de poste participant. how_to_verify_troubleshooting_options_header: Vous voulez en savoir plus sur la façon de vérifier votre identité? @@ -287,8 +287,9 @@ fr: too_many_faces: Trop de visages ssn: Nous avons besoin de votre numéro de sécurité sociale pour vérifier votre nom, date de naissance et adresse. - stepping_up_html: 'Vérifiez à nouveau votre identité et prenez une photo de vous - pour accéder à ce service. %{link_html}' + stepping_up_html: Vérifiez à nouveau votre identité pour accéder à ce service. + Pour plus d’informations sur la vérification de votre identité + %{link_html} tag: Recommandation upload_from_computer: Vous n’avez pas de téléphone ? Téléchargez les photos de votre carte d’identité depuis cet ordinateur. @@ -312,30 +313,26 @@ fr: verify_online_link_text: En savoir plus sur la confirmation en ligne you_entered: 'Tu as soumis:' instructions: - bullet1: Prendre des photos de votre pièce d’identité - bullet1_with_selfie: Prenez des photos de vous et de vos pièces d’identité - bullet2: Saisissez votre numéro de sécurité sociale - bullet3: Faites correspondre votre numéro de téléphone - bullet4: Saisissez à nouveau votre mot de passe %{app_name} + bullet1: Présenter votre permis de conduire ou votre carte d’identité d’un État + bullet2: Saisir votre numéro de sécurité sociale + bullet3: Vérifier la correspondance avec votre numéro de téléphone + bullet4: Saisir à nouveau votre mot de passe %{app_name} consent: En cochant cette case, vous autorisez %{app_name} à demander, utiliser, conserver et partager vos renseignements personnels. Nous les utilisons pour vérifier votre identité. - getting_started: 'Vous aurez besoin de :' + getting_started: 'Vous devrez :' learn_more: En savoir plus sur nos mesures de confidentialité et de sécurité switch_back: Retournez sur votre ordinateur pour continuer à vérifier votre identité. switch_back_image: Flèche pointant du téléphone vers l’ordinateur test_ssn: Dans l’environnement de test seuls les SSN commençant par “900-” ou “900-” sont considérés comme valides. N’entrez pas de vrais PII dans ce champ. - text1: Utilisez votre permis de conduire ou votre carte d’identité nationale. - Les autres pièces d’identité ne sont pas acceptées. - text1_with_selfie: Prenez une photo de vous et une de votre permis de conduire - ou carte d’identité nationale. Les autres pièces d’identité ne sont pas - acceptées. - text2: Vous n’aurez pas besoin de votre carte de sécurité sociale. - text3: Votre numéro de téléphone correspond à vos informations personnelles. Une - fois la correspondance établie, nous vous enverrons un code. - text4: Votre mot de passe enregistre et crypte vos informations personnelles. + text1: Les autres pièces d’identité ne sont pas acceptées. Nous vérifierons que + vous êtes la personne figurant sur la pièce d’identité. + text2: Vous n’aurez pas besoin de votre carte de sécurité sociale papier. + text3: Nous comparons votre numéro de téléphone à vos informations personnelles + et vous envoyons un code à usage unique sur votre téléphone. + text4: Votre mot de passe s’enregistre et chiffre vos informations personnelles. tips: document_capture_hint: Doit être un JPG ou PNG document_capture_id_text1: Utilisez un fond sombre diff --git a/spec/presenters/idv/welcome_presenter_spec.rb b/spec/presenters/idv/welcome_presenter_spec.rb index 5fe1c226768..d8f49e3c1b5 100644 --- a/spec/presenters/idv/welcome_presenter_spec.rb +++ b/spec/presenters/idv/welcome_presenter_spec.rb @@ -18,7 +18,7 @@ ) end - let(:user) { nil } + let(:user) { build(:user) } before do allow(view_context).to receive(:current_user).and_return(user) @@ -35,7 +35,7 @@ describe 'the explanation' do let(:help_link) { '