File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,10 @@ be used to validate the underlying object. To apply the ``registration``
3333group *and * all constraints that are not in a group, use::
3434
3535 'validation_groups' => ['Default', 'registration']
36+
37+ .. note ::
38+
39+ You can choose any name for your validation groups, but Symfony recommends
40+ using "lower snake case" names (e.g. ``foo_bar ``) in contrast with the
41+ automatic validation groups created by Symfony, which use "upper camel case"
42+ (e.g. ``Default ``, ``SomeClassName ``).
Original file line number Diff line number Diff line change @@ -1011,6 +1011,7 @@ Authentication (Identifying/Logging in the User)
10111011 :maxdepth: 1
10121012
10131013 security/form_login_setup
1014+ security/reset_password
10141015 security/json_login_setup
10151016 security/guard_authentication
10161017 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