mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-26 00:24:12 +08:00
fix: selfMFASetupTOTP: bad return func
This commit is contained in:
parent
d85298f229
commit
00aa2e7efc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ if ($ENV{'OSH_IN_INTERACTIVE_SESSION'}) {
|
|||
|
||||
# first, check if the google-authenticator we have supports --issuer, if not, just omit it, it's not a deal-breaker
|
||||
$fnret = OVH::Bastion::execute(cmd => ['google-authenticator', '-h'], must_succeed => 1);
|
||||
$fnret or HEXIT($fnret);
|
||||
$fnret or osh_exit($fnret);
|
||||
my @additional_params;
|
||||
if (grep { /--issuer/ } @{$fnret->value->{'stdout'}}) {
|
||||
push @additional_params, "--issuer=" . OVH::Bastion::config('bastionName')->value;
|
||||
|
|
Loading…
Reference in a new issue