fix password variable shadowing (#5405)

tokarchuk/v1.17
Lanre Adelowo 6 years ago committed by Lauris BH
parent 5e022a98e6
commit ce9a5173fe
  1. 3
      cmd/admin.go

@ -301,7 +301,8 @@ func runCreateUser(c *cli.Context) error {
if c.IsSet("password") {
password = c.String("password")
} else if c.IsSet("random-password") {
password, err := generate.GetRandomString(c.Int("random-password-length"))
var err error
password, err = generate.GetRandomString(c.Int("random-password-length"))
if err != nil {
return err
}

Loading…
Cancel
Save