mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Replace uri with url
This commit is contained in:
@@ -48,7 +48,7 @@ class PwndVerifierV2 implements Verifier
|
||||
$hash = sha1($password);
|
||||
$prefix = substr($hash, 0, 5);
|
||||
$rest = substr($hash, 5);
|
||||
$uri = sprintf('https://api.pwnedpasswords.com/range/%s', $prefix);
|
||||
$url = sprintf('https://api.pwnedpasswords.com/range/%s', $prefix);
|
||||
$opt = [
|
||||
'headers' => [
|
||||
'User-Agent' => sprintf('Firefly III v%s', config('firefly.version')),
|
||||
@@ -61,7 +61,7 @@ class PwndVerifierV2 implements Verifier
|
||||
|
||||
try {
|
||||
$client = new Client();
|
||||
$res = $client->request('GET', $uri, $opt);
|
||||
$res = $client->request('GET', $url, $opt);
|
||||
} catch (GuzzleException|RequestException $e) {
|
||||
Log::error(sprintf('Could not verify password security: %s', $e->getMessage()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user