1
0
Fork 0

Update credential_store.go

master
Philip O'Toole 2 years ago committed by GitHub
parent 1e7c7ec83d
commit 30c35a6b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -148,8 +148,9 @@ func (c *CredentialsStore) Check(username, password string) bool {
return true
}
// Maybe the given a password is a hash -- check if the hash is good
// for the given user.
// Maybe the given password is a hash -- check if the hash is good
// for the given user. We use a cache to avoid recomputing a value we
// previously computed (at substantial compute cost).
if c.UseCache && c.hashCache.Check(username, password) {
return true
}

Loading…
Cancel
Save