Route::post('password/email', 'Auth\ForgotPasswordController@getResetToken');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
You may see the details of the controller here
protocol:://domain/password/email
Accept application/json
POST
email [your-email-address]
{
"data": {
"token": "770f6138f62a5da086881a4bf8799e7d7fc3fc60d30e6f35ad58e4f9496fd597"
},
"message": ""
}
You may see the controller details here
protocol:://domain/password/reset
Accept application/json
POST
email [your-email-address]
password [new-password]
password_confirmation [retype-new-password]
token [the-token-you-get-from-previous-one]
{
"data": null,
"message": "Your password has been reset!"
}
For Password Reset Api Simply add Route
Route::post('/UserPasswordReset','Auth\ForgotPasswordController@sendResetLink');
and make function (sendResetLink) in Auth\ForgotPasswordController
public function sendResetLink(Request $request)
{
$this->validateEmail($request);
Good Luck working fine for me!