We had the same problem that we needed to check if a user had TFA enabled.
The solution we provided was the following:
$getUserTfaSettings = \Drupal::service('user.data')->get('tfa', $user_id, 'tfa_user_settings');
$userTfaStatus = $getUserTfaSettings ? $getUserTfaSettings['status'] : 0;
I don't know if it is the perfect solution but in our case it does it job.
Patch 5633 worked for me on Drupal 10.3.1.
In our case it was not a leading 0 but a trailing 0 on a field for a custom entity.
Problem solved by applying the patch.
I am at DrupalCon Lille and will give this one a try.
I reviewed the MR by checking the coding and testing the added feature.
Tested before and after applying the MR.
Everything works as described.
I am at DrupalCon Lille and will give this one a try.
I reviewed the patch and made a content type with a VAT number field. The validation seems to work correctly.
I am at DrupalCon Lille and will give this one a try!
I reviewed the MR and tested again with drupal-check before and after applying the patch in the MR.
There are no new warnings after applying the patch.
MR applies correctly and everything works fine.
I am at DrupalCon and I will review this.
Hi Jay,
I reviewed your MR and will commit the changes.