[12.x] remove the "prefix" option for cache password resets #56127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this is mostly a rollback of #53448 per Taylor's request. rather than allowing an optional prefix, we'll use a deterministic hash of the user's email for our cache key. this should make the chance of a collision if no dedicated store is used statistically insignificant.
I've also opted to extract out a
makeCacheKey()
method here mainly to reduce the duplicated code and help prevent bugs from divergence. however, this could possibly help userland override the cache key generation. maybe I'm overthinking that, maybe it's honestly not a problem.Please be aware that this change on a minor or patch release will technically break existing users of cache password resets. However, it will likely be very short lived due to password resets usually only being valid for 60 minutes. Also, we have never documented the feature, so adoption is probably very low.
Taylor, I think this is what you were asking for in laravel/docs#10032 (comment), lmk if I was understanding correctly.