Skip to content

Commit 0ca47f9

Browse files
authored
hash the token going into the cache (#53561)
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.
1 parent 1e34533 commit 0ca47f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Auth/Passwords/CacheTokenRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function create(CanResetPasswordContract $user)
4242

4343
$this->cache->put(
4444
$this->prefix.$user->getEmailForPasswordReset(),
45-
[$token, Carbon::now()->format($this->format)],
45+
[$this->hasher->make($token), Carbon::now()->format($this->format)],
4646
$this->expires,
4747
);
4848

0 commit comments

Comments
 (0)