Commit Graph

14 Commits

Author SHA1 Message Date
Givan 3516aae5a3 Removed curl_close that has no effect since PHP 8.0 to avoid deprecation warning on PHP 8.5 (#155)
Since 8.0 a CurlHandle object is returned, and curl_close() has no effect, so this change won't impact earlier versions.
2026-01-05 13:16:44 +00:00
Nicolas CARPi 6194bb08a7 throw a QRException instead
and change the function signature
2024-05-07 03:16:01 +02:00
Nicolas CARPi 6f78141196 handle curl errors. fix #129
if curl fails for some reason to get a QR code from an external (http)
provider, the app will throw a TwoFactorAuthException.

also fix the demo page with new constructor signature
2024-05-07 03:08:31 +02:00
Nicolas CARPi b964b2abbf set verify ssl parameter for HTTP based QR provider to true by default
it's already bad to use an external provider, let's use the safest
defaults at least
2024-04-25 21:40:49 +02:00
Nicolas CARPi 921425d0ff use psr12 in phpcs config 2022-12-29 13:35:16 +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
William Hall 33a32cb099 📚 doc blocks 2021-03-08 18:24:44 +00:00
William Hall 2aa6f46e20 🎨 fix the majority of code sniffs 2021-02-08 17:28:05 +00:00
RobThree 3484cdd992 * Removed CURLOPT_FOLLOWLOCATION and CURLOPT_MAXREDIRS (see #5) 2016-06-20 23:14:36 +02:00
RobThree 3b3e723bea * More variable names improved 2015-04-06 20:35:23 +02:00
RobThree 34b6f279ca * Tabs -> Spaces. Yep. 2015-03-21 01:35:08 +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