定制 global-devteam/laravel-api-password-reset 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

global-devteam/laravel-api-password-reset

Composer 安装命令:

composer require global-devteam/laravel-api-password-reset

包简介

This package implements password reset for APIs

README 文档

README

Easy laravel api password reset for your application

  1. Run composer require global-devteam/laravel-api-password-reset
  2. Run php artisan vendor:publish --tag=laravel-api-password-recovery
  3. Run php artisan migrate
  4. Run php artisan route:list | grep password to see new routes

This package relies on the User.php and it should be at the default location.

POST

api/v1/auth/password payload:

{
	"email":"user@email.com"
}

This endpoint sends an email to the user so you must have your email server setup

GET

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

DELETE

api/v1/auth/password payload:

{
	"email":"user@email.com",
	"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

统计信息

  • 总下载量: 44
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固