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

AUT-1466: Show end of telephone number on MFA resend screen #1694

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

gtvj
Copy link
Contributor

@gtvj gtvj commented Jun 18, 2024

What

Updates the "Get security code" screen to include the last 3 digits of the users mobile phone number when the user has reached this page having clicked "send the code again" during a sign in journey.

This PR re-implements the change that was later reverted because merging revealed an acceptance test failure associated with the change to the controller (see related PRs below). This PR has cherry picked the previous commit and amended it to not touch the relevant controller.

Screenshots

Get security code (English)

image

Get security code (Welsh)

image

How to review

  1. Code Review
  2. Running frontend against this branch, confirm the page appears as expected (steps to reproduce are outlined in the Jira ticket)

Checklist

  • Performance analyst has been notified of the change.
  • A UCD review has been performed.

Related PRs

* includes the last three digits of a user's telephone number in
  the relevant template, making use of the returnLastCharacters
  Nunjucks filter
* introduces a new test to validate the last three digits of the
  user's telephone number are included in the response
* updates returnLastCharactersOnly to ensure an empty string will
  be returned if the function receives a non-string argument. I
  have done this because I found that is possible for the Nunjucks
  macro to receive a undefined value which it then passed to the
  function. If this happens, there would have been an error resulting
  in a 500.
@gtvj gtvj marked this pull request as ready for review June 18, 2024 09:48
@gtvj gtvj requested review from a team as code owners June 18, 2024 09:48
Copy link

@gtvj gtvj merged commit e8df36a into main Jun 18, 2024
7 checks passed
@gtvj gtvj deleted the AUT-1466/re-implement-without-touching-controller branch June 18, 2024 12:02
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.

2 participants