tfa_user_settings not updated when enabeling new plugin

Created on 10 September 2023, 10 months ago

Problem/Motivation

When you initially setup a user and go through each token the tfa_user_settings table is updated with each plugin, however if you skip and finish (say skipping recovery codes) and later return to enable the plugin it will be configured, but will not update tfa_user_settings.

This causes problems for the work being done on migrations in πŸ’¬ Migration from Drupal 7 to Drupal 9 Active

Steps to reproduce

Enable the TOTP, Trusted Browser, and Recovery Code plugins
Createa a new user, and configure all 3 token types.
Create another new user. Setup TFA starting with TOTP, be prompted for Trusted browser (save and continue) and when recovery codes is reached skip and cancel.

Review the tfa_user_settings table and see that first user has all plugins and the second user does not have the recovery codes plugin listed.

Proposed resolution

Ensure that the table is updated in the future, and update the record for missing users.

Remaining tasks

User interface changes

None expected.

API changes

None expected.

Data model changes

The format will remain the same, however there will be the correct plugins listed.

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024