Reproducing Repository for laravel/nova-issues#6797
This app contains basic user registration and two-factor authentication (2FA).
A custom step has been added to the authentication pipeline that exits the application before reaching the 2FA screen.
When this point is reached, it indicates that everything is working as expected.
The app is hosted at localhost:8000
.
composer install
npm install && npm run build
php artisan migrate
php artisan serve
npm run dev
- Register to create a user.
- Enable two-factor authentication.
- Log out.
- Log in with your credentials.
- You should see a blank screen with a message indicating that the customized pipeline is used. The application dies.
This is expected behavior and works correctly when the request is served normally. I added this so you can immediately see that custom behavior gets skipped on octane.
- Make sure Artisan is not running and you disabled
npm run dev
as well and you have docker running. - Run
./vendor/bin/sail build --no-cache
and wait for the images to build. - Run
./vendor/bin/sail up -d
. - Run
npm run dev
again
- (Optional) Create a user if you haven’t already.
- Log in with your credentials.
- The normal 2FA screen will appear, and the custom login pipeline will be skipped. This is incorrect!