Postponed (maintainer needs more info)
Project:
TFA Basic plugins
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2016 at 14:34 UTC
Updated:
16 Jul 2023 at 19:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zopa commentedHere's a patch for updating the check in tfa_basic_tfa_context_alter() - I had to use this is in conjunction with this patch and a custom module that overrides the error messages in order for first time login of users with a TFA required role and a valid mobile number to enter the TFA login flow.
Comment #3
damienmckennaThanks for the patch! BTW when you upload a patch please try to remember to set the issue status to "needs review", it triggers the testbot and lets others know that there's something to look at.
Comment #4
poker10 commentedThanks for working on this @zopa.
Can you please post an error which is thrown without the patch #2? I do not have Twillio enabled and available for testing now. However reading the code, the comment could be a bit misleading, but the condition itself looks good to me:
The condition is checking the output from
tfa_basic_get_tfa_data()and will disable the validation in case the SMS is FALSE (e.g. disabled) or the phone number does not exists. I think this is correct.Can you also please check, if this issue #2609090: SMS TFA pretends to be ready when it is not have not fixed the potential error mentioned by this issue?
Thanks!