Problem/Motivation

The sms tfa_user_setting is a hold over from when the source of the ga_login module spun off from tfa_basic which had a SMS plugin.

As we have never had this feature it is not a setting that belongs in the tfa_user_settings. Even if we did add a SMS plugin it would belong as a plugin with the plugin storing its own user data.

Steps to reproduce

https://git.drupalcode.org/project/tfa/-/blob/44f4dd3d0f9fd1594dfca6d106...

Proposed resolution

Remove the sms setting from user data, including an update hook.

Remaining tasks

Patch

User interface changes

None

API changes

None

Data model changes

Removal of the sms setting from tfa_user_settings user data.

Issue fork tfa-3386547

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cmlara created an issue. See original summary.

kalash-j made their first commit to this issue’s fork.

sarwan_verma’s picture

StatusFileSize
new2.4 KB

Hi @cmlara,
I have fixed this issue Remove 'sms' from tfa_user_settings also created the patch ,
please review and verify.

sarwan_verma’s picture

Status: Active » Needs review
cmlara’s picture

Status: Needs review » Needs work

@kalash-j This still needs an update hook.

@sarwan I'm not sure how you generated your patch, however it appears to have regressions present.

kalash-j’s picture

Status: Needs work » Needs review

@cmlara created update hook for MR!37

cmlara’s picture

I have a few concerns, especially around the new PHPStan warnings, the lack of batch usage in the update hook and the lack of testing to go with it.

I apparently had a version of this already in my local repo that I never pushed that resolved most of the concerns. I've pushed it up to the MR, however I don't honestly recall if there was anything left to do with it.

I may have been distracted by the 8.x-1.5 security fix, or the other security code issues or I may have been distracted working on the Core bug that UserData returns strings instead of integers.

tirupati_singh’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new304.47 KB
new485.8 KB

Hi, I've applied the MR !37 as a patch and it applied with no error. The module is working fine after applying the patch and not getting any issue while using two factor authentication for login. As the MR is resolving the issue, hence moving the issue status to RTBC. I'm also attaching the video clips for before and after fixes of the issue.

cmlara’s picture

Status: Reviewed & tested by the community » Fixed

Commiting to dev.

As this is minor I'm going to skip back-porting to 1.x.

  • cmlara committed 6543cfa9 on 2.x authored by kalash-j
    Issue #3386547 by kalash-j, cmlara: Remove 'sms' from tfa_user_settings
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.