mirror of
https://github.com/django/django.git
synced 2025-07-22 18:49:25 +00:00
[2.0.x] Fixed typos in docs/topics/auth/passwords.txt.
Backport of acf9d6404545c58522c3011348d071d6bfca8f69 from master
This commit is contained in:
parent
f3e1e6d601
commit
f1435bf680
@ -414,7 +414,7 @@ Manually managing a user's password
|
|||||||
.. module:: django.contrib.auth.hashers
|
.. module:: django.contrib.auth.hashers
|
||||||
|
|
||||||
The :mod:`django.contrib.auth.hashers` module provides a set of functions
|
The :mod:`django.contrib.auth.hashers` module provides a set of functions
|
||||||
to create and validate hashed password. You can use them independently
|
to create and validate hashed passwords. You can use them independently
|
||||||
from the ``User`` model.
|
from the ``User`` model.
|
||||||
|
|
||||||
.. function:: check_password(password, encoded)
|
.. function:: check_password(password, encoded)
|
||||||
@ -433,8 +433,8 @@ from the ``User`` model.
|
|||||||
provide a salt and a hashing algorithm to use, if you don't want to use the
|
provide a salt and a hashing algorithm to use, if you don't want to use the
|
||||||
defaults (first entry of ``PASSWORD_HASHERS`` setting). See
|
defaults (first entry of ``PASSWORD_HASHERS`` setting). See
|
||||||
:ref:`auth-included-hashers` for the algorithm name of each hasher. If the
|
:ref:`auth-included-hashers` for the algorithm name of each hasher. If the
|
||||||
password argument is ``None``, an unusable password is returned (a one that
|
password argument is ``None``, an unusable password is returned (one that
|
||||||
will be never accepted by :func:`check_password`).
|
will never be accepted by :func:`check_password`).
|
||||||
|
|
||||||
.. function:: is_password_usable(encoded_password)
|
.. function:: is_password_usable(encoded_password)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user