Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Mar 18, 2019
1 parent 5b2bf19 commit 7b3bc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static function populateOTP(OTPInterface &$otp, array $data): void
return;
}

if (null === $otp->getIssuer() || '' === $otp->getIssuer()) {
if (null !== $otp->getIssuer()) {
Assertion::eq($result[0], $otp->getIssuer(), 'Invalid OTP: invalid issuer in parameter');
$otp->setIssuerIncludedAsParameter(true);
}
Expand Down

0 comments on commit 7b3bc5d

Please sign in to comment.