laravel / fortify

Backend controllers and scaffolding for Laravel authentication.
https://laravel.com/docs/fortify
MIT License
1.61k stars 294 forks source link

[1.x] Route Confirm Password remains active even when I disable all features #84

Closed leo95batista closed 3 years ago

leo95batista commented 4 years ago

Description:

When I disable all the features within the fortify.php configuration file

    'features' => [
        //
    ],

the default Fortify routes are disabled, but the password confirmation route is still enabled. Is this a bug, or is it intentionally defined that way?

imagen

Steps To Reproduce:

  1. Run laraven new app
  2. Run composer require laravel/fortify
  3. Run php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
  4. Go to config/fortify.php and remove all keys within features array
  5. Run php artisan route:list

I think there should be a conditional that groups these routes in the routes.php file.

https://github.com/laravel/fortify/blob/77bd46ac1729939a8db97b890a4d752dce79dc53/routes/routes.php#L95-L104

DarthShmev commented 4 years ago

Make sure you've cached your config and routes after making those changes.

php artisan config:cache Then: php artisan route:cache

driesvints commented 3 years ago

Sounds like a feature request. Feel free to PR something 👍