|
1 |
| -How to Add Secure Password Reset Functionality |
2 |
| -============================================== |
| 1 | +How to Add a Reset Password Feature |
| 2 | +=================================== |
3 | 3 |
|
4 |
| -Using `MakerBundle`_ & `Symfony Cast's Reset Password Bundle`_ you can create a |
| 4 | +Using `MakerBundle`_ & `SymfonyCastsResetPasswordBundle`_ you can create a |
5 | 5 | secure out of the box solution to handle forgotten passwords.
|
6 | 6 |
|
7 |
| -.. caution:: |
| 7 | +First, make sure you have a security ``User`` class. Follow |
| 8 | +the :doc:`Security Guide </security>` if you don't have one already. |
8 | 9 |
|
9 |
| - Make sure you have created a ``User`` class with a getter method to retrieve |
10 |
| - the users unique email address. The :doc:`Security Guide </security>` will |
11 |
| - help you install security and create your user class. |
12 |
| - |
13 |
| -Bootstrap reset password functionality |
14 |
| --------------------------------------- |
| 10 | +Generating the Reset Password Code |
| 11 | +---------------------------------- |
15 | 12 |
|
16 | 13 | .. code-block:: terminal
|
17 | 14 |
|
18 | 15 | $ php composer require symfonycasts/reset-password-bundle
|
19 | 16 | .....
|
20 | 17 | $ php bin/console make:reset-password
|
21 | 18 |
|
| 19 | +The `make:reset-password` command will ask you a few questions about your app and |
| 20 | +generate all the files you need! After, you'll see a success message and a list |
| 21 | +of any other steps you need to do. |
22 | 22 |
|
23 |
| -The reset password maker will then ask you a couple questions about your app and |
24 |
| -generate the required files. Afterword's you should see the success message, |
25 |
| -a list of the files generated, and any other task's that may need to be performed. |
26 |
| - |
27 |
| -You can customize the reset password bundle's behavior by editing ``reset_password.yaml``. |
28 |
| -For more information on the configuration, check out the |
29 |
| -`Symfony Cast's Reset Password Bundle`_ guide. |
| 23 | +You can customize the reset password bundle's behavior by updating the ``reset_password.yaml`` |
| 24 | +file. For more information on the configuration, check out the |
| 25 | +`SymfonyCastsResetPasswordBundle`_ guide. |
30 | 26 |
|
31 | 27 | .. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
|
32 | 28 | .. _`Symfony Cast's Reset Password Bundle`: https://github.com/symfonycasts/reset-password-bundle
|
0 commit comments