Comment to '2FA under Account in Settings'
  • The Twilio integration for 2FA appears to have been working in UNA v10, now upgraded to 11.0 and it is not working as expected. I have set up my Twilio keys in UNA, and enabled 2FA. 

    3 issues seen:

    1. After entering the login details (email & password), I get the secondary form to enter the mobile number. This form does not appear to be able to handle the phone number correctly, and I get an "Error occurred" message after entering the mobile number. No SMS is sent. In the DB log, I saw this message: 

    "03-29-2020 07:41:39: /home/stillwer/public_html/plugins/Twilio/Version.php:85 [HTTP 400] Unable to create record: The 'To' number + is not a valid phone number."

    However, there is only a single entry in the log, and this error is not repeated again, so I don't know if it is the cause of the issue. 

    2. I bypass the 2FA authentication, and clean the value in the DB cache (sys_options) file, which allows me to login. However, I get the message that the phone number is not confirmed. On entering the phone number confirmation screen, I am able to enter the mobile number, and now an SMS code does get sent to my phone. I can enter this code, and the message comes up that the phone number is confirmed. So far, so good.

    3. However, on any subsequent login with the same user-name, I am still required to confirm the mobile number.

    Any ideas on what might be going on?