Password change (#123)

* add password change command

* document cli commands

* go fmt
This commit is contained in:
Tobi Smethurst 2021-07-31 13:57:23 +02:00 committed by GitHub
commit eb13faf54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 280 additions and 0 deletions

View file

@ -120,6 +120,23 @@ func adminCommands() []*cli.Command {
return runAction(c, account.Suspend)
},
},
{
Name: "password",
Usage: "set a new password for the given account",
Flags: []cli.Flag{
&cli.StringFlag{
Name: config.UsernameFlag,
Usage: config.UsernameUsage,
},
&cli.StringFlag{
Name: config.PasswordFlag,
Usage: config.PasswordUsage,
},
},
Action: func(c *cli.Context) error {
return runAction(c, account.Password)
},
},
},
},
},