Commit Graph

63 Commits

Author SHA1 Message Date
Nicolas CARPi 656e966cdf remove useless function comment 2022-12-29 13:43:52 +01:00
Nicolas CARPi 921425d0ff use psr12 in phpcs config 2022-12-29 13:35:16 +01:00
Nicolas CARPi 4711674ec0 crank phpstan to level 6 2022-12-29 13:32:02 +01:00
Nicolas CARPi f034bc782e use interface 2022-12-09 19:45:53 +01:00
Nicolas CARPi f8ba3b234b fix endroid qr provider handleErrorCorrectionLevel signature 2022-12-09 19:42:16 +01:00
Nicolas CARPi db6256b5e8 fix endroid handleColor 2022-12-09 19:37:49 +01:00
Nicolas CARPi 041d0e38e2 fix bacon construct signature 2022-12-09 19:36:47 +01:00
Nicolas CARPi 1e75674a45 fix action php version and handleColour function signature for bacon qr 2022-12-09 19:32:27 +01:00
Nicolas CARPi 25f463d19b turns out I had a global gitignore with lib... -_-' 2022-12-09 19:27:50 +01:00
Nicolas CARPi ac721e57b9 add php-cs-fixer 2022-12-07 23:10:13 +01:00
Nicolas CARPi a8c297c178 second batch with QR providers 2022-12-07 23:02:41 +01:00
Nicolas CARPi aeb4b00c60 first batch 2022-12-07 22:28:52 +01:00
Matthew Peveler 5f2611cde2 Fix compatibility with endroid/qr-code 4 2022-02-14 11:09:10 -05:00
William Hall 2d1ec8d265 🐛 be more specific with hex colour handling 2021-12-19 19:44:10 +00:00
William Hall 66e1e030ba ♻️ re arrange useful testing code for provider tests 2021-12-19 19:32:45 +00:00
Roland Eigelsreiter 0096cce02d convert issuer to string prevents php 8.1 errors
By forcing $this->issuer to be string, even if null is set, it prevents throwing errors in PHP 8.1 is `rawurlencode` is not allowed to have null as parameter.

It would be better to force string to be already in `__construct`, but this may create a breaking change for existing users.
2021-11-29 06:50:54 +01:00
Milan 65b17bca59 Add encoding option in query to google API 2021-10-17 21:21:54 +03:00
Milan c01202bc10 Make verifySSL argument as first option in constructor 2021-10-17 21:08:32 +03:00
fman42 0453a94349 Made verifySSL optional 2021-10-04 15:01:04 +03:00
fman42 49f681e905 Rename a class 2021-10-04 15:00:06 +03:00
Milan 08846488cc Implemented new ChartGoogleQrCodeProvider 2021-10-03 19:14:10 +03:00
William Hall 38f349fccd Merge remote-tracking branch 'igorsantos/qr-logos' 2021-03-09 18:09:38 +00:00
William Hall 33a32cb099 📚 doc blocks 2021-03-08 18:24:44 +00:00
William Hall 58d3354367 🐛 correct some minor issues 2021-03-08 18:20:07 +00:00
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
Igor Santos cc2ae19bcd Document the need for the code to be a string 2021-01-25 02:32:41 -03:00
Igor Santos c3f3c0a849 Move logo implementation to its own class 2021-01-24 00:41:46 -03:00
Igor Santos 2060811d88 Add logo option to Endroid's provider
closes #56
2021-01-23 23:58:22 -03: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