diff options
| author | fschwebel <fschwebel@users.noreply.github.com> | 2023-01-30 08:31:39 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-30 08:32:13 +0100 |
| commit | 5159e05e40df304018a0704c98e310e801e947f8 (patch) | |
| tree | d2da30fa696c392709f1b2e06ccd1941253e2adb /docs | |
| parent | 4bf3d6dec299dca26f9fa3782e143c6f20e6e56b (diff) | |
[4.2.x] Fixed typo in docs/topics/auth/passwords.txt.
Wrapped hashing is only possible if the inner wrapped function is the
same as the previous hasher.
Backport of 0265b1b49ba10f957abfd1311d0bae0ecefc3111 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/passwords.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt index 57053c1a2a..eb3b06b65e 100644 --- a/docs/topics/auth/passwords.txt +++ b/docs/topics/auth/passwords.txt @@ -336,7 +336,7 @@ to happen when a user logs in (which may never happen if a user doesn't return to your site). In this case, you can use a "wrapped" password hasher. For this example, we'll migrate a collection of MD5 hashes to use -PBKDF2(SHA1(password)) and add the corresponding password hasher for checking +PBKDF2(MD5(password)) and add the corresponding password hasher for checking if a user entered the correct password on login. We assume we're using the built-in ``User`` model and that our project has an ``accounts`` app. You can modify the pattern to work with any algorithm or with a custom user model. |
