We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f78141 commit 6194bb0Copy full SHA for 6194bb0
lib/Providers/Qr/BaseHTTPQRCodeProvider.php
@@ -4,13 +4,11 @@
4
5
namespace RobThree\Auth\Providers\Qr;
6
7
-use RobThree\Auth\TwoFactorAuthException;
8
-
9
abstract class BaseHTTPQRCodeProvider implements IQRCodeProvider
10
{
11
protected bool $verifyssl = true;
12
13
- protected function getContent(string $url): string|bool
+ protected function getContent(string $url): string
14
15
$curlhandle = curl_init();
16
@@ -25,7 +23,7 @@ protected function getContent(string $url): string|bool
25
23
));
26
24
$data = curl_exec($curlhandle);
27
if ($data === false) {
28
- throw new TwoFactorAuthException(curl_error($curlhandle));
+ throw new QRException(curl_error($curlhandle));
29
}
30
31
curl_close($curlhandle);
0 commit comments