From ff0f6ba724748dbe340187fdd831a4d4f7f0ae5e Mon Sep 17 00:00:00 2001 From: raven Date: Wed, 22 Oct 2025 16:28:22 -0500 Subject: passwords --- client/command.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'client/command.go') 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{}) -- cgit v1.2.3