PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication
http://phpgangsta.de/4376
BSD 2-Clause "Simplified" License
2.26k stars 698 forks source link

Add Exception when paramater is less than 6 for setCodeLength #67

Open RSpeekenbrink opened 5 years ago

RSpeekenbrink commented 5 years ago

The function setCodeLength sais in the docblock that it's parameter value should be 6 or greater. This actually adds an exception when a length < 6 is passed to the function.