From a4ef890247bc3de56a82b8fa0beae464325008a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Fri, 13 Mar 2026 01:13:57 +0100 Subject: [PATCH] fix: trim whitespace from stdin password When password is read from stdin (e.g. echo password | mark ...), the trailing newline was included in the password string, causing authentication to fail. Use strings.TrimSpace to strip it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- util/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/auth.go b/util/auth.go index fddaf85..c55e1fb 100644 --- a/util/auth.go +++ b/util/auth.go @@ -46,7 +46,7 @@ func GetCredentials( ) } - password = string(stdin) + password = strings.TrimSpace(string(stdin)) } if compileOnly && targetURL == "" {