Laravel 7: Forget password redirect to wrong url

Viewed 34

I'm using Laravel 7 default forget password for resetting user's password. I have a different guards and table for admin login. After resetting user password it redirects to the admin login page instead of user login page. And then I tried to login with the update password, but it didn't update. For reset password work and redirects, where to edit this code, I'm not sure about this.

Here's what I have tried for redirecting,

On Controller/Auth/ResetPasswordController.php

protected $redirectTo = '/login';

on ResetsPasswords trait, I have added the web guard

protected function guard()
    {
        return Auth::guard('auth:web');
    }

Can you please tell me where I have to make changes for redirecting to the user login page which url is www.my-domain.com/login

0 Answers
Related