• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Mobile phone format validation for MFA SMS enable page

Scheduled Pinned Locked Moved Unsolved
Q&A
2
2
1.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y
    youchuan990316
    last edited by 1 Feb 2024, 20:27

    I wonder is there a way to validate the format of the mobile phone number provided by the user and show the notification for any format issue when they enter the number and enable the SMS MFA method. For example, when the user clicks on the send a one-time code button, if the mobile phone number is in an invalid format, there will be a red notification popping up. Can we achieve this by modifying the theme?
    42e87c99-6129-4146-8596-f13f40bc6f96-image.png

    D 1 Reply Last reply 1 Feb 2024, 20:40 Reply Quote 1
    • D
      dan @youchuan990316
      last edited by 1 Feb 2024, 20:40

      Hiya @youchuan990316 You should be able to do this using javascript. I'm not familiar with particular libraries or methods, but google has a number of options.

      You can modify the Account two-factor enable theme page.

      Hope this helps.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post