Support the ongoing development of Laravel.io →
Authentication Database

Hi there,

I want to simplify the password reset process for the user by determining the users email address automatically from the given token. However, since Laravel stores a crypted version of the users token in the passwords_resets table I cannot simply look up the users email-address by searching for the given token. I tried to hash the given token by using Hash::make() on it, but the resulting hash differs from the one in the database.

Can you give me a hint on how to hash the given token to get a resulting hash that matches the one in the database?

Thanks, Moritz

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.