From 507243dac52651fa216619547d1e4dfde0f00e89 Mon Sep 17 00:00:00 2001 From: Thomas David Baker Date: Thu, 15 Feb 2024 16:13:41 -0800 Subject: [PATCH] This is legal PHP in latest but not in the version Gatherling is running --- gatherling/forgot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatherling/forgot.php b/gatherling/forgot.php index 700c8572d..b0ded207d 100644 --- a/gatherling/forgot.php +++ b/gatherling/forgot.php @@ -137,7 +137,7 @@ function resetPassword($token, $newPassword): bool { try { $payload = JWT::decode($token, new Key($CONFIG['password_reset_key'], 'HS256')); - } catch (Exception) { + } catch (Exception $e) { return false; } if (!isset($payload->name) || !isset($payload->exp)) {