Skip to content

Commit b293271

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Validation] Added a note about validation group names 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 2c161f6 + 7820b7c commit b293271

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

form/validation_groups.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ be used to validate the underlying object. To apply the ``registration``
3333
group *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``).

security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

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)