Problem/Motivation
Combining Email TFA module(release 1.0.5) with Field Group module (release 3.2.0) results in a 502 nginx error when accessing /admin/people/create or /user/XX/edit?destination=/admin/people due to an infinite loop in field_group_field_info_max_weight function provided by Field Group module.
In email_tfa_entity_base_field_info function, provided by Email TFA module, weight option is not set when field email_tfa_status is created, resulting in the recursive loop previosuly described in Field Group module.
In my opinion, this issue should be solved in Field Group module and not in Email TFA module, but we needed a fast solution for this problem
Steps to reproduce
drupal core version: 9.4.8
PHP version: 7.4.24
Email TFA module: 1.0.5
Field Group module: release 3.2.0
When accessing /admin/people/create or /user/XX/edit?destination=/admin/people, 502 nginx error
Proposed resolution
Temporal solution: creating a patch that sets a weight option in email_tfa_status newly created field in Email TFA module. As i said before, I think a deeper solution should be implemented directly in the root of the problem: Field Group module -or maybe core, I am not sure-.
Remaining tasks
Trying to offer a deeper solution directly in Field Group module or core