Skip to content

Commit b901744

Browse files
committed
fix: use password hash instead of password when verifying
1 parent 61a7400 commit b901744

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/user/verify/verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var VerifyCmd = &cobra.Command{
7373
}
7474

7575
if docker {
76-
userSplit[1] = strings.ReplaceAll(password, "$$", "$")
76+
userSplit[1] = strings.ReplaceAll(userSplit[1], "$$", "$")
7777
}
7878

7979
verifyErr := bcrypt.CompareHashAndPassword([]byte(userSplit[1]), []byte(password))

0 commit comments

Comments
 (0)