mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup
This commit is contained in:
@@ -22,9 +22,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Password;
|
||||
|
||||
use Exception;
|
||||
use Log;
|
||||
use Requests;
|
||||
use Requests_Exception;
|
||||
|
||||
/**
|
||||
* Class PwndVerifier.
|
||||
@@ -46,7 +46,7 @@ class PwndVerifier implements Verifier
|
||||
|
||||
try {
|
||||
$result = Requests::get($uri, ['originalPasswordIsAHash' => 'true'], $opt);
|
||||
} catch (Requests_Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
return true;
|
||||
}
|
||||
Log::debug(sprintf('Status code returned is %d', $result->status_code));
|
||||
|
@@ -22,9 +22,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Password;
|
||||
|
||||
use Exception;
|
||||
use Log;
|
||||
use Requests;
|
||||
use Requests_Exception;
|
||||
|
||||
/**
|
||||
* Class PwndVerifierV2.
|
||||
@@ -51,7 +51,7 @@ class PwndVerifierV2 implements Verifier
|
||||
|
||||
try {
|
||||
$result = Requests::get($uri, $opt);
|
||||
} catch (Requests_Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
return true;
|
||||
}
|
||||
Log::debug(sprintf('Status code returned is %d', $result->status_code));
|
||||
|
Reference in New Issue
Block a user