Mobile phone format validation for MFA SMS enable page
-
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?
-
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.