Forgot Password

If an existing user forgot his password he has the possibility of resetting his password.


In the case of an user forgetting the credentials there is the possibility of resetting them. For resetting the password the user should use the Forgot password? button from the login page. The user must provide the email for the account and after that a link will be sent for resetting the password to the provided mail address.

The App/Http/Controllers/ResetController.php takes care of sending an email to the user where he can reset the password afterwards.

Copy
                        
                public function sendEmail(Request $request)
                {
                    $request->validate(['email' => 'required|email']);

                    $status = Password::sendResetLink(
                        $request->only('email')
                    );

                    return $status === Password::RESET_LINK_SENT
                                ? back()->with(['status' => __($status)])
                                : back()->withErrors(['email' => __($status)]);
                }