Skip to content

Commit

Permalink
hash the token going into the cache (#53561)
Browse files Browse the repository at this point in the history
this is a bugfix for the new password reset cache driver. when translating from the `DatabaseTokenRepository`, I forgot to mimic the behavior of hashing the token going into storage.
  • Loading branch information
browner12 authored Nov 18, 2024
1 parent f661204 commit 5dae865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Passwords/CacheTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function create(CanResetPasswordContract $user)

$this->cache->put(
$this->prefix.$user->getEmailForPasswordReset(),
[$token, Carbon::now()->format($this->format)],
[$this->hasher->make($token), Carbon::now()->format($this->format)],
$this->expires,
);

Expand Down

0 comments on commit 5dae865

Please sign in to comment.