·
Added a discussion

Hello UNA Team,

While testing UNA 13.1.0 on my dev site, I came across this weird behavior of the account confirmation unconfirming already-confirmed accounts when enabling the option: Account is confirmed when ‘email and phone are confirmed’.

In a near future, I am planning to use Twilio to verify phone numbers for account creation. But meanwhile, because of the Twilio cost, I temporally disabled the Phone confirmation and I enabled the email confirmation only by selecting the option: Account is confirmed when ‘email is confirmed’. 

Please, note that I have also enabled the Phone field on the Account creation and edit page to allow members to enter/edit their phone number to be used in the future when the phone confirmation will be enabled.

The problem is, later when I enable the option: Account is confirmed when ‘email and phone are confirmed’, already-confirmed accounts using email confirmation get unconfirmed. The account confirmation system requires members to confirm both ‘email’ (reconfirm) and ‘phone’. 

Is it a normal behavior? Wasn't it supposed to require members to confirm their phone only and not to reconfirm their email address (again) as it was already confirmed when the option: Account is confirmed when ‘email is confirmed’ was enabled?

When the 'email' or/and the 'phone' is already confirmed, the system shouldn't require members to reconfirm it when the account confirmation setting is changed in Studio > Settings > Account.

@Alex T⚜️ @Anton L Please correct me if I am wrong. Also, please could you provide us with a fix to this issue in UNA 14.0.0?

Thanks advance.

  • 562
Comments
    • Hello @OneEagle !

      Yes, this is the right behaviour because the activation option works in the "present moment" and it checks the activation parameters (email and phone) in the present moment. So it's better to enable it with Twilio or activate left "without phones" accounts manually.

      • Hi @LeonidS

        Thanks for your reply but it seems like you didn't get my point.

        Why should the system request members to re-confirm their email (for the second time) when the setting in Studio is changed to 'email and phone'? Why should they do that if their email was already confirmed when the setting was: Account is confirmed when ‘email is confirmed’? It doesn't make any sense at all. It's not logical.

        IMHO, existing members with their already-confirmed email shouldn't be asked to confirm their email for the second time when the setting is changed to: Account is confirmed when ‘email and phone are confirmed’. Instead, they should confirm their 'phone' only.

        • Hello. I just tried to reproduce the issue and switched the setting 'Account is confirmed when' from 'email is confirmed' to 'email and phone are confirmed' and system became to notify users that they should confirm their phones only.

          I checked the DB and as I saw Email Confirmation flag wasn't reset for currently registered accounts. After I switched the setting back to 'email is confirmed' the notification about the necessity to confirm phone disappeared while emails remain confirmed.

          But I tested it on the latest UNA 14 RC2.

          • Hello. I rechecked the code and as I found out email confirmation can be changed in 2 cases only. The first one is by admin via Studuo -> Accounts. The second one is by a user changing his email via Account -> Settings -> Email settings.

            • Hi @Anton L Thanks a lot for your answer and for taking your time to check this issue. As you tested it on the lastest UNA 14 RC2 and there is no such issue, then the problem is on UNA 13.1.0-Stable. It's the one I am using. I will be upgrading once the stable and final version of UNA 14 is released.

              Login or Join to comment.