Skip to content

Commit 0894bdb

Browse files
committed
Merge branch '5.1'
* 5.1: Update reactjs.rst Add link to SymfonyCasts React.js tutorial Update vuejs.rst 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 c56aa54 + a0db786 commit 0894bdb

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

frontend/encore/reactjs.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
Enabling React.js
22
=================
33

4-
Using React? First enable support for it in ``webpack.config.js``:
4+
.. admonition:: Screencast
5+
:class: screencast
6+
7+
Do you prefer video tutorials? Check out the `React.js screencast series`_.
8+
9+
Using React? First add some dependencies with Yarn:
10+
11+
.. code-block:: terminal
12+
13+
$ yarn add @babel/preset-react --dev
14+
$ yarn add react react-dom prop-types
15+
16+
Enable react in your ``webpack.config.js``:
517

618
.. code-block:: terminal
719
@@ -26,3 +38,5 @@ install any missing dependencies. After running that command and restarting
2638
Encore, you're done!
2739

2840
Your ``.js`` and ``.jsx`` files will now be transformed through ``babel-preset-react``.
41+
42+
.. _`React.js screencast series`: https://symfonycasts.com/screencast/reactjs

frontend/encore/vuejs.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Enabling Vue.js (``vue-loader``)
22
================================
33

4+
.. admonition:: Screencast
5+
:class: screencast
6+
7+
Do you prefer video tutorials? Check out the `Vue screencast series`_.
8+
49
Want to use `Vue.js`_? No problem! First enable it in ``webpack.config.js``:
510

611
.. code-block:: diff
@@ -188,3 +193,4 @@ you can import them with ``require()`` function:
188193
.. _`JSX with Vue.js`: https://github.com/vuejs/jsx
189194
.. _`Scoped Styles`: https://vue-loader.vuejs.org/guide/scoped-css.html
190195
.. _`CSS Modules`: https://github.com/css-modules/css-modules
196+
.. _`Vue screencast series`: https://symfonycasts.com/screencast/vue

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)