fix: use password hash instead of password when verifying

This commit is contained in:
Stavros
2025-01-22 20:18:03 +02:00
parent 61a7400cf1
commit b901744e03

View File

@@ -73,7 +73,7 @@ var VerifyCmd = &cobra.Command{
} }
if docker { if docker {
userSplit[1] = strings.ReplaceAll(password, "$$", "$") userSplit[1] = strings.ReplaceAll(userSplit[1], "$$", "$")
} }
verifyErr := bcrypt.CompareHashAndPassword([]byte(userSplit[1]), []byte(password)) verifyErr := bcrypt.CompareHashAndPassword([]byte(userSplit[1]), []byte(password))