MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / ValidatePasswordAndHash

Function ValidatePasswordAndHash

common/crypto.go:28–31  ·  view source on GitHub ↗
(password string, hash string)

Source from the content-addressed store, hash-verified

26}
27
28func ValidatePasswordAndHash(password string, hash string) bool {
29 err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
30 return err == nil
31}

Callers 2

checkUpdatePasswordFunction · 0.92
ValidateAndFillMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected