Fixed #34565 -- Added support for async checking of user passwords.

This commit is contained in:
HappyDingning 2023-05-15 00:12:22 +08:00 committed by Mariusz Felisiak
parent 4e73d8c04d
commit 674c23999c
8 changed files with 98 additions and 8 deletions

View file

@ -166,11 +166,18 @@ Methods
were used.
.. method:: check_password(raw_password)
.. method:: acheck_password(raw_password)
*Asynchronous version*: ``acheck_password()``
Returns ``True`` if the given raw string is the correct password for
the user. (This takes care of the password hashing in making the
comparison.)
.. versionchanged:: 5.0
``acheck_password()`` method was added.
.. method:: set_unusable_password()
Marks the user as having no password set. This isn't the same as