Show nopass flag in ACL LIST command

This commit is contained in:
Kelvin Clement Mwinuka
2023-12-19 08:15:05 +08:00
parent cec1366f3e
commit ab86694bc2

View File

@@ -275,6 +275,10 @@ func (p Plugin) handleList(ctx context.Context, cmd []string, server utils.Serve
} else {
s += " off"
}
// NoPassword
if user.NoPassword {
s += " nopass"
}
// Passwords
for _, password := range user.Passwords {
if strings.EqualFold(password.PasswordType, "plaintext") {