php bin/console make:reset-password

Create controller, entity, and repositories for use with symfonycasts/reset-password-bundle

Usage

make:reset-password [--with-uuid] [--with-ulid] [--with-tests]

Options

      --with-uuid    Use UUID for entity "id" 
      --with-ulid    Use ULID for entity "id" 
      --with-tests   Generate PHPUnit Tests 

Help

The make:reset-password command generates all the files needed to implement
 a fully-functional & secure password reset system.

The SymfonycastsResetPasswordBundle is required and can be added using composer:
composer require symfonycasts/reset-password-bundle

For more information on the reset-password-bundle check out:
https://github.com/symfonycasts/reset-password-bundle

make:reset-password requires a user entity with an email property,
email getter method, and a password setter method. Maker will ask for these
interactively if they cannot be guessed.

Maker will also update your reset-password.yaml configuration file
if one exists. If you have customized the configuration file, maker will attempt
to modify it accordingly but preserve your customizations.

php bin/console make:reset-password

Instead of using the default "int" type for the entity's "id", you can use the
UUID type from Symfony's Uid component.
https://symfony.com/doc/current/components/uid.html#storing-uuids-in-databases

php bin/console make:reset-password --with-uuid

Or you can use the ULID type from Symfony's Uid component.
https://symfony.com/doc/current/components/uid.html#storing-ulids-in-databases

php bin/console make:reset-password --with-ulid

To generate tailored PHPUnit tests, simply call:

php bin/console make:reset-password --with-tests

This will generate a unit test in tests/ for you to review then use
to test the new functionality of your app.