|
Line
Link Here
|
| 0 |
-- a/src/PVE/AccessControl.pm |
0 |
++ b/src/PVE/AccessControl.pm |
|
Lines 737-742
Link Here
|
| 737 |
my $plugin = PVE::Auth::Plugin->lookup($cfg->{type}); |
737 |
my $plugin = PVE::Auth::Plugin->lookup($cfg->{type}); |
| 738 |
|
738 |
|
| 739 |
if ($tfa_challenge) { |
739 |
if ($tfa_challenge) { |
|
|
740 |
verify_ticket($tfa_challenge, 0, $username); |
| 740 |
# This is the 2nd factor, use the password for the OTP response. |
741 |
# This is the 2nd factor, use the password for the OTP response. |
| 741 |
my $tfa_challenge = authenticate_2nd_new($username, $realm, $password, $tfa_challenge); |
742 |
my $tfa_challenge = authenticate_2nd_new($username, $realm, $password, $tfa_challenge); |
| 742 |
return wantarray ? ($username, $tfa_challenge) : $username; |
743 |
return wantarray ? ($username, $tfa_challenge) : $username; |