This package implements password reset for APIs
global-devteam/laravel-api-password-reset is a Laravel package for this package implements password reset for apis.
It currently has 1 GitHub stars and 44 downloads on Packagist (latest version v1.0.1).
Install it with composer require global-devteam/laravel-api-password-reset.
Discover more Laravel packages by global-devteam
or browse all Laravel packages to compare alternatives.
Last updated
Easy laravel api password reset for your application
composer require global-devteam/laravel-api-password-resetphp artisan vendor:publish --tag=laravel-api-password-recoveryphp artisan migratephp artisan route:list | grep password to see new routesThis package relies on the User.php and it should be at the default location.
api/v1/auth/password
payload:
{
"email":"[email protected]"
}
This endpoint sends an email to the user so you must have your email server setup
api/v1/auth/password/show/{token}
This endpoint validates the token and it is valid you will get the token object otherwise an invalid message will be returned
api/v1/auth/password
payload:
{
"email":"[email protected]",
"password":"secret",
"password_confirmation":"secret",
"token": "k8sgO6"
}
This endpoint changes the password and sends an email to the user so you must have your email server setup