🤖 Auto commit for release 'develop' on 2025-06-12

This commit is contained in:
JC5
2025-06-12 15:41:41 +02:00
parent 3bfc12f93b
commit 657b95485c
6 changed files with 39 additions and 38 deletions

View File

@@ -101,6 +101,7 @@ class Authenticate
if ($result) {
$user = $this->auth->guard($guard)->user();
$this->validateBlockedUser($user, $guards);
// According to PHPstan the method returns void, but we'll see.
return $this->auth->shouldUse($guard); // @phpstan-ignore-line
}
@@ -109,7 +110,7 @@ class Authenticate
// this is a massive hack, but if the hander has the oauth exception
// at this point we can report its error instead of a generic one.
$message = 'Unauthenticated.';
if(Handler::$lastError instanceof OAuthServerException) {
if (Handler::$lastError instanceof OAuthServerException) {
$message = Handler::$lastError->getHint();
}