Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It is not possible to masquerade with two-factor authentication.
It is not possible to masquerade with two-factor authentication.
Comments
Comment #2
starboy27 CreditAttribution: starboy27 as a volunteer commentedFile tfa.module
line 355 function tfa_user_login
if (!$tfa->ready()) {
}
else {
if (!isset($_SESSION['tfa_masqurade'])) {
tfa_logout();
}
unset($_SESSION['tfa_masqurade']);
}
File - masquerade.module
line no 841 function masquerade_switch_user create session
$_SESSION['tfa_masqurade'] = 'tfa_masqurade';
Comment #3
apadernoCould you describe more in which way the modules aren't compatible? The IS doesn't make it clear and the previous comment shows code that isn't used from the Two-factor Authentication (TFA) module.
Comment #4
edvanleeuwenWhen TFA is enabled, trying to switch to another user is not possible, as the security code for the user to be masqueraded has to be entered.
Comment #5
apaderno@edvanleeuwen Please update the issue summary.