wingsline/passwordlessauth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wingsline/passwordlessauth

Composer 安装命令:

composer require wingsline/passwordlessauth

包简介

Passwordless Authentication for Laravel

README 文档

README

Latest Version on Packagist Total Downloads Build Status StyleCI

This package will enable passwordless authentication using temporary signed routes. Take a look at contributing.md to see a to do list.

Installation

Create a new Laravel application with:

laravel new myapp --auth

Via Composer

$ composer require wingsline/passwordlessauth

Remove the Auth::routes(); from the routes/web.php and replace it with:

use Wingsline\PasswordlessAuth\Facades\PasswordlessAuth;

PasswordlessAuth::routes();

Replace the following route names in the original views with the passwordless. prefix:

  • login -> passwordless.login
  • register -> passwordless.register
  • logout -> passwordless.logout
  • verification.resend -> passwordless.verification.resend

Replace the auth middleware in app/Http/Kernel.php:

protected $routeMiddleware = [
        'auth' => \Wingsline\PasswordlessAuth\Middleware\Authenticate::class,
    ]

Add the following method to the User model and make sure the model implements the Illuminate\Contracts\Auth\MustVerifyEmail interface:

use Wingsline\PasswordlessAuth\Notifications\VerifyEmail;

/**
 * Send the email verification notification.
 *
 * @return void
 */
public function sendEmailVerificationNotification()
{
    $this->notify(new VerifyEmail);
}

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email wingsline@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固