dimanche 27 janvier 2019

how to check token with email [ reset password]

How to check token with email , if this tokan was save for a email ?
my controller's code :

public function reset(Request $request)
{
    $this->validate($request, [
        'token' => 'required',
        'password' => 'required|confirmed|min:6',
    ]);


    $reset = User::where('email', $request->email)->firstOrFail();


    return redirect()->back()->with('message', 'Success');
}

my route : Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.reset');

can you tell me , how can i check email & token and also change password ??
thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire