Commit 80a36483 authored by Marek Wójtowicz's avatar Marek Wójtowicz
Browse files

Fix yubikey from session.

parent 48f93404
......@@ -174,7 +174,11 @@ sub verify {
# Verify OTP
my $yubikey = $self->_findYubikey( $req, $session );
unless ( $yubikey ) {
if (
index( $yubikey,
substr( $code, 0, $self->conf->{yubikey2fPublicIDSize} ) ) == -1
)
{
$self->userLogger->warn('Yubikey not registered');
return PE_BADOTP;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment