diff --git a/src/Cms/Auth.php b/src/Cms/Auth.php index 8f6d31e862..28d9f36e28 100644 --- a/src/Cms/Auth.php +++ b/src/Cms/Auth.php @@ -830,7 +830,9 @@ class_exists(static::$challenges[$challenge]) === true && throw new LogicException('Invalid authentication challenge: ' . $challenge); } catch (Throwable $e) { - if (($e->getDetails()['reason'] ?? null) !== 'rate-limited') { + $details = is_a($e, 'Kirby\Exception\Exception') === true ? $e->getDetails() : []; + + if (($details['reason'] ?? null) !== 'rate-limited') { $this->track($email); }