Skip to content

Commit 7820b7c

Browse files
committed
feature #13581 add doc for reset-password maker (jrushlow, weaverryan)
This PR was merged into the 4.4 branch. Discussion ---------- add doc for reset-password maker - Creates a guide to setup reset password functionality - Security doc links to the new guide Added to the 4.4 branch as the bundle supports Symfony 4.4+ Commits ------- 9b484fc fixing link e065dff proofreading reset password e964751 refactor caution msg 6e39c5c fix typo 0303275 remove generated code c8a9d46 fix title da7b2b3 link reset password doc in security a4c8b08 draft reset password doc
2 parents 6198b74 + 9b484fc commit 7820b7c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

security.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,7 @@ Authentication (Identifying/Logging in the User)
10151015
:maxdepth: 1
10161016

10171017
security/form_login_setup
1018+
security/reset_password
10181019
security/json_login_setup
10191020
security/guard_authentication
10201021
security/password_migration

security/reset_password.rst

+28
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)