OSDN Git Service
(root)
/
bytom
/
bytom-spv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Dev wallet sa (#1238)
[bytom/bytom-spv.git]
/
net
/
http
/
authn
/
authn.go
diff --git
a/net/http/authn/authn.go
b/net/http/authn/authn.go
index
e192715
..
8f5c3d3
100644
(file)
--- a/
net/http/authn/authn.go
+++ b/
net/http/authn/authn.go
@@
-140,7
+140,7
@@
func (a *API) cachedTokenAuthnCheck(ctx context.Context, user, pw string) error
res, ok := a.tokenMap[user+pw]
a.tokenMu.Unlock()
if !ok || time.Now().After(res.lastLookup.Add(tokenExpiry)) {
- err := a.tokens.Check(
ctx,
user, pw)
+ err := a.tokens.Check(user, pw)
if err != nil {
return ErrInvalidToken
}