I am trying reset password, using trait ResetsPasswords, and then I got that method:
how will I do that?
1. method reset() does not exist
protected function reset(Request $request) { $request->validate($this->rules(), $this->validationErrorMessage());
$response = $this->broker()->reset(
$this->credentials($request), function($user, $password){
$this->resetPassword($user, $password);
}
);
return $response == Password::PASSWORD_RESET
? $this->sendResetResponse($request, $response)
: $this->sendResetFailedResponse($request, $resposne);
}
2. api.php
Route::post('password/reset', 'Api\ResetPasswordController@reset');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire