P
P
Pavell892021-05-31 10:13:01
Laravel
Pavell89, 2021-05-31 10:13:01

How to correctly implement a password recovery method using a unique key?

Good afternoon, everyone

can have an up-to-date info on how to make a password recovery method by email on laravel where does the unique key for resetting the password come from?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Babichev, 2021-05-31
@REZ1DENT3

Lately, we've been doing it with signed urls.
https://laravel.com/docs/8.x/urls#signed-urls

use Illuminate\Support\Facades\URL;

return URL::temporarySignedRoute(
    'unsubscribe', now()->addMinutes(30), ['user' => 1]
);

You can set the lifetime, specify the desired user (and other parameters) and not store data in the subd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question