Back

Password reset link expired


Hello, I have installed fresh copy of Laravel 5.5 and have installed auth scaffolding aswell. I changed all redirection from '/home' to '/' but I can't change redirect if reset password link is expired or used. If I click on reset password link which was used, Laravel redirect me on '/home'... I tried to override 'RedirectsUsers' trait but it doesn't work. I don't know how can solve this problem. Anyone can help?

Thanks.

Ludvík Matějíček replied 6 days ago

I found solution:

In App\Http\Middleware\RedirectIfAuthenticated

change

if (Auth::guard($guard)->check()) {
    return redirect('/home');
}

to

if (Auth::guard($guard)->check()) {
    return redirect('/');
}

Sign in to participate in this thread!



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