From 0feac505905b9435723c3a058453e61a59cd7dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Thu, 12 Jul 2018 12:37:56 +0200 Subject: [PATCH] renamed ValidateCredentials to ValidateHash --- auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.1.2