diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index 0c7534d..88ea174 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -239,7 +239,7 @@ class TwoFactorAuth private function base32Decode(string $value): string { - if (strlen($value) == 0) { + if ($value === '') { return ''; }