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.4k
    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

      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

      danD 1 Reply Last reply Reply Quote 1
      • danD
        dan @youchuan990316
        last edited by

        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
        • First post
          Last post