Skip to content

Commit ae912d8

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: fixing link proofreading reset password refactor caution msg fix typo remove generated code fix title link reset password doc in security draft reset password doc
2 parents f5e18ec + 2c89373 commit ae912d8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ Authentication (Identifying/Logging in the User)
11221122
:maxdepth: 1
11231123

11241124
security/form_login_setup
1125+
security/reset_password
11251126
security/json_login_setup
11261127
security/guard_authentication
11271128
security/password_migration

security/reset_password.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
How to Add a Reset Password Feature
2+
===================================
3+
4+
Using `MakerBundle`_ & `SymfonyCastsResetPasswordBundle`_ you can create a
5+
secure out of the box solution to handle forgotten passwords.
6+
7+
First, make sure you have a security ``User`` class. Follow
8+
the :doc:`Security Guide </security>` if you don't have one already.
9+
10+
Generating the Reset Password Code
11+
----------------------------------
12+
13+
.. code-block:: terminal
14+
15+
$ php composer require symfonycasts/reset-password-bundle
16+
.....
17+
$ php bin/console make:reset-password
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+
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.
26+
27+
.. _`MakerBundle`: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html
28+
.. _`SymfonyCastsResetPasswordBundle`: https://github.com/symfonycasts/reset-password-bundle

0 commit comments

Comments
 (0)