Compare commits

..

No commits in common. "master" and "v0.0.3" have entirely different histories.

View file

@ -208,7 +208,7 @@ var UserDeactivateCmd = &cobra.Command{
}
var UserEditCmd = &cobra.Command{
Use: "edit <user>",
Use: "edit",
Short: "edites a user",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
@ -251,7 +251,7 @@ var UserEditCmd = &cobra.Command{
}
if flagUserPassword != "" {
passwordHash, err := bcrypt.GenerateFromPassword([]byte(flagUserPassword), bcrypt.DefaultCost)
passwordHash, err := bcrypt.GenerateFromPassword([]byte(args[1]), bcrypt.DefaultCost)
if err != nil {
logrus.WithError(err).Fatal("could not compute user password hash")
}