wingsline/passwordlessauth
Composer 安装命令:
composer require wingsline/passwordlessauth
包简介
Passwordless Authentication for Laravel
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-23