fix: proactive-mfa: make it work for --osh batch and --osh clush

This commit is contained in:
Stéphane Lesimple 2021-09-22 09:18:47 +00:00 committed by Stéphane Lesimple
parent b5c5d9d5ee
commit 8d84fce34f

View file

@ -462,11 +462,6 @@ if ($proactiveMfa) {
# if we're still here, it succeeded
$ENV{'OSH_PROACTIVE_MFA'} = 1;
}
else {
# ensure this is unset no matter what
delete $ENV{'OSH_PROACTIVE_MFA'};
}
if ($interactive and not $ENV{'OSH_IN_INTERACTIVE_SESSION'}) {
if (not $config->{'interactiveModeAllowed'}) {