diff --git a/auth.go b/auth.go index 23ae118..cb2eb9b 100644 --- a/auth.go +++ b/auth.go @@ -39,8 +39,8 @@ func InitJWT(appName, secret string) { secret = secret } -// ValidateCredentials hashes pass and salt and returns comparison result with resultHash -func ValidateCredentials(pass, salt, resultHash string) (bool, error) { +// ValidateHash hashes pass and salt and returns comparison result with resultHash +func ValidateHash(pass, salt, resultHash string) (bool, error) { hash, _, err := CreateHash(pass, salt) if err != nil { return false, err