From b901744e037ea414c53cffefac4882454cf1179a Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 22 Jan 2025 20:18:03 +0200 Subject: [PATCH] fix: use password hash instead of password when verifying --- cmd/user/verify/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/user/verify/verify.go b/cmd/user/verify/verify.go index 233a1d9..9ae1d5d 100644 --- a/cmd/user/verify/verify.go +++ b/cmd/user/verify/verify.go @@ -73,7 +73,7 @@ var VerifyCmd = &cobra.Command{ } if docker { - userSplit[1] = strings.ReplaceAll(password, "$$", "$") + userSplit[1] = strings.ReplaceAll(userSplit[1], "$$", "$") } verifyErr := bcrypt.CompareHashAndPassword([]byte(userSplit[1]), []byte(password))