Files
kontor/kontor-fiber/pkg/utils/auth.go
T
2026-01-29 23:50:41 +01:00

9 lines
214 B
Go

package utils
import "golang.org/x/crypto/bcrypt"
func ComparePassword(hashedPassword, password string) bool {
err := bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
return err == nil
}