laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.95k stars 809 forks source link

password.confirm Middleware missing view /stubs/resources/views/auth/confirm-password.blade.php #335

Closed 382580322 closed 3 years ago

382580322 commented 3 years ago

Description:

InvalidArgumentException View [auth.confirm-password] not found. http://localhost/user/confirm-password

Steps To Reproduce:

Route::get('/settings/security', function () {

})->middleware(['auth', 'password.confirm']);

Enter in a page URL

http://localhost/settings/security

driesvints commented 3 years ago

Heya, thanks. We're working on this!

taylorotwell commented 3 years ago

Will be included in next major release. I have it up on a branch now.

taylorotwell commented 3 years ago

If you need it before then you can implement the views yourself.

adampatterson commented 3 years ago

I ran into this today on a fresh install using JetStream v1.6.5

Cipfahim commented 3 years ago

Still, this problem exists. @taylorotwell Please update this one lots of people facing this issue every day.

Quick fix for (inertia stack):

  1. Add this on JetstreamServiceProvider.php boot method

Fortify::confirmPasswordView(function (Request $request) { return Inertia::render('Auth/ConfirmPassword')->toResponse($request); });

  1. Create ConfirmPassword.vue inside resource/js/Pages/Auth )

Note: Download the attached file as an example. ConfirmPassword.vue.zip

radenir commented 3 years ago

I am also having problem with it, would be greatful for the fix.

joelbutcher commented 3 years ago

@radenir https://github.com/laravel/jetstream/issues/335#issuecomment-713838827