summaryrefslogtreecommitdiff
path: root/src/mailman/utilities/passwords.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/utilities/passwords.py')
-rw-r--r--src/mailman/utilities/passwords.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/utilities/passwords.py b/src/mailman/utilities/passwords.py
index 44fdbc14f..9abc59402 100644
--- a/src/mailman/utilities/passwords.py
+++ b/src/mailman/utilities/passwords.py
@@ -63,6 +63,10 @@ class PasswordContext:
:type password:
:param hashed: The hash string to compare to.
:type hashed: string
+ :return: 2-tuple where the first element is a flag indicating whether
+ the password verified or not, and the second value whether the
+ existing hash needs to be replaced (a str if so, else None).
+ :rtype: 2-tuple
"""
return self._context.verify_and_update(password, hashed)