diff options
Diffstat (limited to 'mattermost.go')
-rw-r--r-- | mattermost.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mattermost.go b/mattermost.go index 54d08c243..950de2827 100644 --- a/mattermost.go +++ b/mattermost.go @@ -257,6 +257,12 @@ func cmdResetPassword() { os.Exit(1) } + if len(flagPassword) < 5 { + fmt.Fprintln(os.Stderr, "flag invalid argument needs to be more than 4 characters: -password") + flag.Usage() + os.Exit(1) + } + c := &api.Context{} c.RequestId = model.NewId() c.IpAddress = "cmd_line" |