2 Factor Authentication

I've enabled 2 Factor Authentication, but the phone confirmation form generates the following error:
Notice: Undefined index: type in una\template\scripts\BxBaseFormView.php on line 285

  • 668
  • More
Replies (11)
    • Hello SehaSky !

      I couldn't reproduce it from my side. As "type" is one of the most important params for fields, it looks like you missed it during the SQL creation of the field.

      • I've not changed anything in the SQL files. I checked the database and all fields on the phone confirmation form have 'type' params, however, the form object 'phone_confirmation' does not have 'type' field with 'POST' value similar to the one on timeline form. I'm not sure if this could be the reason!
        I've now removed UNA and deleted the database, then reinstalled a clean new copy of UNA, however, I'm still getting the error once I turn on 2 factor authentication, even before installing any other modules.

        • Thank you for the report, could you please specify your UNA version ?
          • I tried once with UNA 11 B version, and then tried again using the GitHub repository after running the phing build.xml with target: package. In both circumstances I was getting the same error.

            • Could please specify what values you entered for Twilio in Studio > Settings ? it's required to send SMS
              • I used my SID, Auth Token, and my Twilio number. The error seems to be a php code one .. it does not seem to be related to Twilio service.

                • I am getting exactly the same error after upgrading to UNA 11. 

                  I have set up my Twilio (SID and Auth Token( 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 the message: 

                  "Unknown Control Type 

                  Error occurred"

                  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 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?

                  *Note that I am using the "Invitations" module from UNA, as my site is a "by-invitation-only" site.

                  • I have never been able to use 2Factor successfully in any version of UNA and the problems listed in this thread is consistent with my ongoing issues.  My account with Twilio has been reviewed and I've tried both the test and live credentials with the same result: 

                    Unknown control type - Error Occurred

                    I'm still totally unclear why this process is so messed up?  Every account that's created with 2FA enabled should have a phone number field in their account, which can be reviewed and updated if necessary and verified.  This is not the case.  The phone # is a system based form that is only for signing in?  I simply don't understand why this half-baked feature hasn't been vetted out by the community.

                    Seriously - has ANYONE been able to use 2FA successfully? 

                    • Hi Jethro !

                      We're working with GondarMD about this trouble, but now he should update his UNA till the latest 11.0.0 version. If you want you may provide me your UNA studio and server's Control Panel too.

                      • Thanks Leonid S - I sent you my credentials. 

                        • Intermediate update: we've found this error from Twilio service https://www.twilio.com/docs/api/errors/21606#the-from-phone-number-provided-is-not-a-valid-message-capable-twilio-phone-number . So we are waiting for their investigation about the reason(s).

                          Login or Join to comment.