diff options
| author | raven <citrons@mondecitronne.com> | 2025-10-22 16:28:22 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-02-09 13:13:55 -0600 |
| commit | ff0f6ba724748dbe340187fdd831a4d4f7f0ae5e (patch) | |
| tree | ab27a0c9f40d803c2bf130ef7c82cdf6540e9018 /client/command.go | |
| parent | 4b54a1d11fd0fa355b244637612a3fd0af18c60c (diff) | |
passwords
Diffstat (limited to 'client/command.go')
| -rw-r--r-- | client/command.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/command.go b/client/command.go index 5ceb45b..64f8cd8 100644 --- a/client/command.go +++ b/client/command.go @@ -179,9 +179,14 @@ func (a *application) doCommand(command string, args []string, text string) { }) return case "create": - if a.authenticated { - a.createChannel(text) + a.createChannel(text) + return + case "password": + if text == "" { + a.cmdWindow.err("password cannot be empty") + return } + a.pushPrompt(&passwordChangePrompt {password: text}) return case "debug": a.goTo(debugWindowLocation{}) |
