Releases: grosv/laravel-passwordless-login
Laravel 8
Ready for Laravel 8
Single Use Links
This minor release adds the ability to make login links single use. If in your .env you set LPL_USE_ONCE=true
used links will be remembered in the cache and, if found, will throw a 401 instead of logging the user in. You can also add a custom message to the 401. See README for more info.
Patch
Fixes a bug that prevented the link from expiring.
You have to be kidding me!
My kid pooped himself as I was trying to get the last release together so I had created the pull request that fixed the problem but hadn't merged it. Now it really should be working. I hope.
Properly functioning release
Fixed a really stupid bug where because I forgot to add the web middleware to the login route, users were momentarily logged in but then immediately logged out on redirect.
This bug seems to indicate, though, that there is a bug in the Laravel test suite because the tests demonstrated that the user session persisted beyond the redirect which it obviously did not in the real world. I will recreate for the purposes of demonstrating the problem and see if I can get the Larapeeps to fix the tests suite so that nobody else suffers like I have today.
Add stuff that I missed in the last release
Bring reality in line with documentation
One line link creation for trait-using models
Added createPasswordlessLoginLink() to the trait to provide a one-line option for generating the link once you have a user model that you want to log in.
v1
With a great deal of help from @ashleighsims and @innoflash we worked through a couple of bugs, added the ability to set the redirect url on the fly, and created a trait to make per-user-type defaults easy. I feel good deploying this package in my own projects at work now and look forward to keeping it great with your help!
Adds Facade
Facade now available. Should be last pre-release release.
Remove database migrations
I had added a phone column to the default users table when I intended to handle the actual delivery of the link to the user in this package. But since I decided that was out of scope for this package, I'm removing that migration.