From 2ac424c7f662cc17ad4f63a1372ad0bb77300caf Mon Sep 17 00:00:00 2001 From: Fabsolute Date: Fri, 18 May 2018 00:29:10 +0300 Subject: [PATCH] Update GoogleAuthenticator.php --- PHPGangsta/GoogleAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPGangsta/GoogleAuthenticator.php b/PHPGangsta/GoogleAuthenticator.php index 02c645f..ae23da0 100644 --- a/PHPGangsta/GoogleAuthenticator.php +++ b/PHPGangsta/GoogleAuthenticator.php @@ -128,7 +128,7 @@ public function verifyCode($secret, $code, $discrepancy = 1, $currentTimeSlice = $currentTimeSlice = floor(time() / 30); } - if (strlen($code) != 6) { + if (strlen($code) != $this->_codeLength) { return false; }