mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-17 20:53:44 +00:00
* Size for QR image must be > 0
This commit is contained in:
@@ -115,7 +115,7 @@ class TwoFactorAuth
|
||||
*/
|
||||
public function getQRCodeImageAsDataUri($label, $secret, $size = 200)
|
||||
{
|
||||
if (!is_int($size) || $size < 0)
|
||||
if (!is_int($size) || $size <= 0)
|
||||
throw new TwoFactorAuthException('Size must be int > 0');
|
||||
|
||||
return 'data:'
|
||||
|
||||
Reference in New Issue
Block a user