It is not possible to masquerade with two-factor authentication.

Comments

edvanleeuwen created an issue. See original summary.

starboy27’s picture

File 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';

apaderno’s picture

Version: 7.x-1.0-rc7 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

Could 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.

edvanleeuwen’s picture

When 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.

apaderno’s picture

@edvanleeuwen Please update the issue summary.