summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamie.scott@uconn.edu <jamie.scott@uconn.edu>2019-10-21 15:02:44 -0700
committerAndy McCurdy <andy@andymccurdy.com>2019-12-28 22:23:43 -0800
commit659e218840406f8268f57546a19ff2a308757be4 (patch)
tree2574f8095528775aa1ecc2ed6f73870bd953ec46
parenteb9801512da78643b87f29e48805e870f25588e1 (diff)
downloadredis-py-659e218840406f8268f57546a19ff2a308757be4.tar.gz
Forgot to modify comments
Modifying comments for code documentation.
-rwxr-xr-xredis/client.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py
index 8bb428f..4065f9d 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -973,14 +973,23 @@ class Redis(object):
``add_passwords`` if specified is a list of new passwords that this
user can authenticate with. For convenience, the value of
``add_passwords`` can also be a simple string when adding a single
- password. Note: Do not prefix passwords with '>' or '#'. Passwords
- can not be 64 characters unless in hash form.
+ password. Note: Do not prefix passwords with '>'.
+
+ ``add_hashes`` if specified is a list of new passwords hashes that
+ a user can authenticate with. This is useful when you do not want
+ to share passwords for ACL users or want to remove cleartext
+ passwords from code. All hashes must be SHA-256 hashes and can not
+ be prefixed with '#'.
``remove_passwords`` if specified is a list of passwords to remove from
this user. For convenience, the value of ``remove_passwords`` can also
be a simple string when removing a single password. Note: Do not
- prefix passwords with '<' or '!'. Passwords can not be 64 characters
- unless in hash form.
+ prefix passwords with '<'.
+
+ ``add_hashes`` if specified is a list of passwords hashes to remove
+ This is useful when you do not want to remove a password but do not
+ want to share passwords for ACL users do not know the password. All
+ hashes must be SHA-256 hashes and can not be prefixed with '!'.
``categories`` if specified is a list of strings representing category
permissions. Each string must be prefixed with either a "+@" or "-@"