Skip to content

Commit

Permalink
This is legal PHP in latest but not in the version Gatherling is running
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Feb 16, 2024
1 parent 21eb323 commit 507243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatherling/forgot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 507243d

Please sign in to comment.