mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-13 12:27:59 +00:00
fix(auth/csvauth): load tokens into hashmap so that they can be retrieved by CredentialKeys
This commit is contained in:
parent
d415a8c743
commit
249385c775
@ -44,9 +44,8 @@ func (a *Auth) CacheCredential(c Credential) error {
|
||||
a.credentials[name] = c
|
||||
if c.Purpose == PurposeToken {
|
||||
a.tokens[c.hashID] = c
|
||||
} else {
|
||||
a.hashedCredentials[nameID] = c
|
||||
}
|
||||
a.hashedCredentials[nameID] = c
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user