Skip to content

Commit 78718d0

Browse files
authored
Enhance documentation for ACL GETUSER passwords property
Clarify the description of the 'passwords' property and its expected response format for the 'ACL GETUSER' command.
1 parent c343c24 commit 78718d0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

stage_descriptions/auth-04-pl7.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
In this stage, you'll add support for responding to the `ACL GETUSER` command with the `passwords` property.
22

3-
### The `passwords` property
3+
### The `passwords` Property
44

5-
The `passwords` property lists all hash-encoded passwords associated with the user. The `default` user does not have any associated passwords unless explicitly configured:
5+
The `passwords` property lists all hash-encoded passwords associated with a user.
6+
7+
The `default` user does not have any associated passwords unless explicitly configured:
68

79
```bash
810
> ACL GETUSER default
@@ -12,10 +14,10 @@ The `passwords` property lists all hash-encoded passwords associated with the us
1214
4) (empty array)
1315
```
1416

15-
Your `ACL GETUSER` response must now include the `passwords` property and its value:
17+
Your `ACL GETUSER` response must now include the following:
1618

17-
- The string `passwords`, encoded as a bulk string.
18-
- A RESP array containing the list of passwords. Since the `default` user has none, you must hardcode this to an empty array.
19+
1. The string `passwords`, encoded as a bulk string.
20+
2. A RESP array containing the list of passwords. Since the `default` user has none, you must hardcode this to be an empty array.
1921

2022
### Tests
2123

@@ -28,9 +30,8 @@ $ ./your_program.sh
2830
It will then send an `ACL GETUSER` command specifying the `default` user:
2931

3032
```bash
31-
$ redis-cli
3233
# Expect RESP array: ["flags", ["nopass"], "passwords", []]
33-
> ACL GETUSER default
34+
$ redis-cli ACL GETUSER default
3435
1) "flags"
3536
2) 1) "nopass"
3637
3) "passwords"

0 commit comments

Comments
 (0)