mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 12:47:00 +00:00
Replace magic facades
This commit is contained in:
@@ -44,6 +44,7 @@ use Illuminate\Validation\Validator;
|
||||
use PragmaRX\Google2FA\Exceptions\IncompatibleWithGoogleAuthenticatorException;
|
||||
use PragmaRX\Google2FA\Exceptions\InvalidCharactersException;
|
||||
use PragmaRX\Google2FA\Exceptions\SecretKeyTooShortException;
|
||||
use PragmaRX\Google2FALaravel\Facade;
|
||||
|
||||
/**
|
||||
* Class FireflyValidator.
|
||||
@@ -79,7 +80,7 @@ class FireflyValidator extends Validator
|
||||
}
|
||||
$secret = (string) $secret;
|
||||
|
||||
return (bool) \Google2FA::verifyKey($secret, $value);
|
||||
return (bool) Facade::verifyKey($secret, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +132,7 @@ class FireflyValidator extends Validator
|
||||
}
|
||||
$secret = (string) $user->mfa_secret;
|
||||
|
||||
return (bool) \Google2FA::verifyKey($secret, $value);
|
||||
return (bool) Facade::verifyKey($secret, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user