* Size for QR image must be > 0

This commit is contained in:
Rob Janssen
2015-03-20 12:57:03 +01:00
parent 767f11d62b
commit 9e417bdb2f
+1 -1
View File
@@ -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:'