File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -1122,6 +1122,7 @@ Authentication (Identifying/Logging in the User)
1122
1122
:maxdepth: 1
1123
1123
1124
1124
security/form_login_setup
1125
+ security/reset_password
1125
1126
security/json_login_setup
1126
1127
security/guard_authentication
1127
1128
security/password_migration
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments