fix login functionality

This commit is contained in:
Thomas Peetz
2025-12-04 17:23:59 +01:00
parent 46bca919d7
commit a5393f471f
6 changed files with 131 additions and 16 deletions
+8
View File
@@ -0,0 +1,8 @@
package utils
import "golang.org/x/crypto/bcrypt"
func ComparePassword(hashedPassword, password string) bool {
err := bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
return err == nil
}