Commit 0feac505905b9435723c3a058453e61a59cd7dc7

Authored by Marko Tikvić
1 parent 31a4e13027
Exists in master

renamed ValidateCredentials to ValidateHash

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
... ... @@ -39,8 +39,8 @@ func InitJWT(appName, secret string) {
39 39 secret = secret
40 40 }
41 41  
42   -// ValidateCredentials hashes pass and salt and returns comparison result with resultHash
43   -func ValidateCredentials(pass, salt, resultHash string) (bool, error) {
  42 +// ValidateHash hashes pass and salt and returns comparison result with resultHash
  43 +func ValidateHash(pass, salt, resultHash string) (bool, error) {
44 44 hash, _, err := CreateHash(pass, salt)
45 45 if err != nil {
46 46 return false, err
... ...