Compare commits

..

2 Commits

Author SHA1 Message Date
Stavros
b901744e03 fix: use password hash instead of password when verifying 2025-01-22 20:18:03 +02:00
Stavros
61a7400cf1 refactor: change cmd to entrypoint 2025-01-22 17:26:46 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -46,4 +46,4 @@ COPY --from=builder /tinyauth/tinyauth ./
EXPOSE 3000 EXPOSE 3000
CMD ["./tinyauth"] ENTRYPOINT ["./tinyauth"]

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))