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; }