mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-10 18:30:11 +08:00
Show nopass flag in ACL LIST command
This commit is contained in:
@@ -275,6 +275,10 @@ func (p Plugin) handleList(ctx context.Context, cmd []string, server utils.Serve
|
|||||||
} else {
|
} else {
|
||||||
s += " off"
|
s += " off"
|
||||||
}
|
}
|
||||||
|
// NoPassword
|
||||||
|
if user.NoPassword {
|
||||||
|
s += " nopass"
|
||||||
|
}
|
||||||
// Passwords
|
// Passwords
|
||||||
for _, password := range user.Passwords {
|
for _, password := range user.Passwords {
|
||||||
if strings.EqualFold(password.PasswordType, "plaintext") {
|
if strings.EqualFold(password.PasswordType, "plaintext") {
|
||||||
|
Reference in New Issue
Block a user