mirror of
https://github.com/django/django.git
synced 2025-10-02 15:01:45 +00:00
[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 0265b1b49b
from main
This commit is contained in:
parent
4bf3d6dec2
commit
5159e05e40
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
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
|
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
|
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
|
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.
|
modify the pattern to work with any algorithm or with a custom user model.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue