From 674c23999cb6982a9d447fedec4d72e135201fee Mon Sep 17 00:00:00 2001 From: HappyDingning Date: Mon, 15 May 2023 00:12:22 +0800 Subject: Fixed #34565 -- Added support for async checking of user passwords. --- docs/ref/contrib/auth.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 90ae5904a8..61fd74a38f 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -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 -- cgit v1.3