Skip to content

[12.x] Fix TypeError in userFromRecaller() when the recaller matches no user - #61397

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
lazerg:fix-recaller-null-user-61396
Sep 1, 2026
Merged

[12.x] Fix TypeError in userFromRecaller() when the recaller matches no user#61397
taylorotwell merged 2 commits into
laravel:12.xfrom
lazerg:fix-recaller-null-user-61396

Conversation

@lazerg

@lazerg lazerg commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

#61386 added a password hash check to userFromRecaller(), but retrieveByToken() still returns null whenever the remember token has been rotated or the user no longer exists. On that path $userPassword is null, so hash_equals() gets a null argument and throws instead of the request falling through as a guest.

Returning as soon as the provider gives back no user restores the 12.68 behavior.

Fixes #61396

@lazerg lazerg changed the title [12.x] Fix TypeError when a stale "remember me" cookie no longer matches a user [12.x] Fix TypeError in userFromRecaller() when the recaller matches no user Sep 1, 2026
@taylorotwell
taylorotwell merged commit 7de7458 into laravel:12.x Sep 1, 2026
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants