Commit Graph

36 Commits

Author SHA1 Message Date
William Hall 2aa6f46e20 🎨 fix the majority of code sniffs 2021-02-08 17:28:05 +00:00
William Hall df74a59b43 🐛 fix unthrowable exception 2021-02-05 16:30:19 +00:00
Rob Janssen 9007489436 Merge pull request #39 from willpower232/bacon-qr-code-integration
integrate bacon qr code
2020-09-27 23:03:10 +02:00
Rob Janssen f0136c9458 Merge pull request #40 from SavageCore/feature/endroidqrcode
Implement `endroid/qr-code` support
2020-09-27 23:01:52 +02:00
Rob Janssen c6f1f47481 Update NTPTimeProvider.php 2020-01-02 20:47:51 +01:00
William Hall 45bdc41597 integrate bacon qr code 2019-12-01 10:55:08 +00:00
SavageCore 957128bcfe Implement endroid/qr-code support 2019-11-20 17:36:27 +00:00
RobThree 3407c33775 * Switched default ImageChartsQRCodeProvider to QRServerProvider 2019-06-21 10:51:04 +02:00
RobThree 7477d5d656 * Replace google image charts with image-charts.com 2019-03-19 22:51:19 +01:00
RobThree c18ec155ae * Minor refactoring of verifyCode. 2018-06-09 12:09:24 +02:00
RobThree fca87f2d09 * Fix a bug that caused timeslices to be returned instead of the intended timeslice
* Upped version
2018-06-06 02:32:07 +02:00
RobThree 5de91c2837 * Ignore deprecation message for mcrypt_create_iv for PHP7.1+ 2018-06-06 01:49:21 +02:00
RobThree 0ac68f6b86 * Fix PHP7.2 issue with HashRNGProvider
* Fix PHP7.1+ issue with MCryptRNGProvider
2018-06-06 01:47:03 +02:00
RobThree 93fc6355d4 * Dropped ConvertUnixTimeDotComTimeProvider
* Added NTPTimeProvider
* Added out argument on verifyCode() method that returns the matched timeslice (if any) when a valid code was entered
2018-06-05 22:17:49 +02:00
RobThree b1ecc9afbc * Fix some caching issues 2017-11-06 18:37:49 +01:00
RobThree 5093ab230c * Fix TwoFactorAuth class actually uses the TimeProvider
* Update README and DEMO to advise using 160+ bits secret
2017-02-17 16:24:54 +01:00
RobThree f90bc37319 * You can now specify the expected time format returned by a 3rd party to the HttpTimeProvider. 2017-02-17 15:21:31 +01:00
RobThree 0ebe1d69a6 * Less opinionated SSL defaults 2017-02-17 15:14:58 +01:00
RobThree 78a2d6e514 * Default stream options can now be overridden by specifying them in the constructor
* Removed some deprecated/stale code
2017-02-17 15:12:34 +01:00
RobThree 582a26749a * Fix another PHP5.3 array issue 2017-02-17 15:02:02 +01:00
RobThree c114772d01 * Fix PHP 5.3 array syntax in unittests 2017-02-17 14:59:44 +01:00
RobThree 9735116635 * Implemented ITimeProviders 2017-02-17 14:53:55 +01:00
RobThree 178c60d947 * Redo #15 which somehow didn't merge... 2017-02-17 12:15:17 +01:00
Jonathan Trummer aec91881bf changed getQRText() from private to public
Changed access modifier for the function getQRText() from private to
public.
This allows for generating the QR Code in different ways (eg pass the
data from getQRText() to the client and have a Javascript Library render
the QR Code)
2016-06-24 17:34:39 +02:00
RobThree 3484cdd992 * Removed CURLOPT_FOLLOWLOCATION and CURLOPT_MAXREDIRS (see #5) 2016-06-20 23:14:36 +02:00
RobThree c94fcd83d8 * Added new (PHP7+) CSRNGProvider (uses random_bytes)
* Added a bunch basic of unittests for the RNG's
* QRicketProvider and QRServerProvider now throw on invalid MIME-types
* TwoFactorAuth now first tries to use CSRNGProvider before any of the other RNG providers
2015-12-02 16:38:20 +01:00
RobThree e837caa9ce * Force VerifyCode() to return bool 2015-07-16 15:43:45 +02:00
Rob Janssen 52cbcf7579 * Removed stupid typo 2015-04-30 14:39:06 +02:00
RobThree 955e9b0b03 * Fix for possible timing-attack in verifyCode() method 2015-04-30 12:53:21 +02:00
RobThree 3b3e723bea * More variable names improved 2015-04-06 20:35:23 +02:00
RobThree f1a729c9ed * Better variable naming 2015-04-06 20:29:16 +02:00
RobThree 74a18a8fa6 * Added some base32 decoding-specific unittests
* Base32 decoding now allows for padding chars
2015-03-22 23:46:15 +01:00
RobThree 34b6f279ca * Tabs -> Spaces. Yep. 2015-03-21 01:35:08 +01:00
Rob Janssen 9e417bdb2f * Size for QR image must be > 0 2015-03-20 12:57:03 +01:00
RobThree 3687b0b32d * Renamed namespace 2015-03-19 15:46:46 +01:00
RobThree 553b725ab7 * Move stuff around 2015-03-19 15:05:51 +01:00