Closed (fixed)
Project:
Email TFA
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2021 at 11:39 UTC
Updated:
13 Feb 2022 at 07:49 UTC
Jump to comment: Most recent
We use the module Masquerade. This module enables our administrators to switch the user and test the site as another user.
After activating of the module Email TFA, is the email authentication code required, when an administrator tries to switch to another user account. The authentication code is sent to the user, into its account the administrator wants to switch.
Has anyone an idea, how to solve this issue?
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
Comment #2
antonín slejška commentedComment #7
abdulaziz zaidThank you, Antonín Slejška
Can you review and confirm?
https://git.drupalcode.org/project/email_tfa/-/merge_requests/6
Comment #8
antonín slejška commentedHi Abdulaziz and thanks for the patch.
I'm sorry for the delay. I've had winter vacation and was with my family in a ski resort.
I tested the patch as the "user one" and also as a standard administrator. Everything worked as expected.
I have also read the code of the patch, and it looks fine. (The method "\Drupal::service('masquerade')->isMasquerading()" is new for me. I have learned something.)
Comment #10
abdulaziz zaidHi Antonín Slejška and thanks for the review I push the new releases today.