@@ -123,16 +123,18 @@ Upgrade the Password
123
123
Upon successful login, the Security system checks whether a better algorithm
124
124
is available to hash the user's password. If it is, it'll hash the correct
125
125
password using the new hash. If you use a Guard authenticator, you first need to
126
- `provide the original password to the Security system <Provide the Password when using Guard >`_ .
126
+ :ref: `provide the original password to the Security system <provide- the-password-guard >` .
127
127
128
128
You can enable the upgrade behavior by implementing how this newly hashed
129
129
password should be stored:
130
130
131
- * `When using Doctrine's entity user provider <Upgrade the Password when using Doctrine >`_
132
- * `When using a custom user provider <Upgrade the Password when using a custom User Provider >`_
131
+ * :ref: `When using Doctrine's entity user provider <upgrade- the-password-doctrine >`
132
+ * :ref: `When using a custom user provider <upgrade- the-password- custom-provider >`
133
133
134
134
After this, you're done and passwords are always hashed as secure as possible!
135
135
136
+ .. _provide-the-password-guard :
137
+
136
138
Provide the Password when using Guard
137
139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138
140
@@ -157,6 +159,8 @@ for this login request. This password is used in the migration process::
157
159
}
158
160
}
159
161
162
+ .. _upgrade-the-password-doctrine :
163
+
160
164
Upgrade the Password when using Doctrine
161
165
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
162
166
@@ -186,6 +190,8 @@ storing the newly created password hash::
186
190
}
187
191
}
188
192
193
+ .. _upgrade-the-password-custom-provider :
194
+
189
195
Upgrade the Password when using a Custom User Provider
190
196
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191
197
0 commit comments