Update translations and fix some code.

This commit is contained in:
James Cole
2023-02-22 19:54:19 +01:00
parent a18cd23154
commit 585cfddfd7
40 changed files with 343 additions and 328 deletions

View File

@@ -42,7 +42,7 @@ class Authenticate
*
* @var Auth
*/
protected $auth;
protected Auth $auth;
/**
* Create a new middleware instance.
@@ -101,7 +101,8 @@ class Authenticate
$this->validateBlockedUser($user, $guards);
}
return $this->auth->authenticate(); // @phpstan-ignore-line (thinks function returns void)
/** @noinspection PhpUndefinedMethodInspection */
return $this->auth->authenticate();
}
Log::debug('Guard array is not empty.');
@@ -146,6 +147,7 @@ class Authenticate
}
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)
throw new AuthenticationException('Blocked account.', $guards);