Skip to content

Show numeric keyboard on mobile for 2fa codes

What does this MR do and why?

Display numeric keyboard on mobile phones when entering a 2FA verification code.

I have also changed the term pin for code this is more align to the language of two-factor authenticator apps.

Second commit fixes broken tests.

Third commit is optional. It makes related warnings to use similar language.

Closes trigger numeric mobile keyboard for two-factor ... (#20605 - closed)

Changelog: changed

Screenshots or screen recordings

Before After
Screenshot_20230216_154525_Chrome Screenshot_20230216_163917_Chrome
Screenshot_20230216_154707_Chrome Screenshot_20230216_183001_Chrome

How to set up and validate locally

  1. Go to https://gdk.test:3443/-/profile/two_factor_auth on a mobile device. The easiest way would be to access it via the review app.
  2. Enable a time-based one-time password (TOTP)
  3. The numeric keyboard should be displayed when entering the verification code.
  4. Log out
  5. Sign-in back. The numeric keyboard should be displayed when entering the verification code.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Sanz García

Merge request reports