Remove static references

This commit is contained in:
James Cole
2023-10-29 06:31:13 +01:00
parent 59d96f2893
commit 91b7d20f9b
15 changed files with 39 additions and 39 deletions

View File

@@ -128,7 +128,7 @@ class Authenticate
private function validateBlockedUser(?User $user, array $guards): void
{
if (null === $user) {
Log::warning('User is null, throw exception?');
app('log')->warning('User is null, throw exception?');
}
if (null !== $user) {
// Log::debug(get_class($user));
@@ -137,7 +137,7 @@ class Authenticate
if ('email_changed' === $user->blocked_code) {
$message = (string)trans('firefly.email_changed_logout');
}
Log::warning('User is blocked, cannot use authentication method.');
app('log')->warning('User is blocked, cannot use authentication method.');
app('session')->flash('logoutMessage', $message);
/** @noinspection PhpUndefinedMethodInspection */
$this->auth->logout(); // @phpstan-ignore-line (thinks function is undefined)