Compare commits
2 Commits
3b1e860256
...
9b82fa7828
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 9b82fa7828 | |
Derrick Hammer | bf576dfaee |
|
@ -20,7 +20,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var jwtKey = []byte{}
|
var jwtKey = ed25519.PrivateKey{}
|
||||||
|
|
||||||
var blocklist *jwt.Blocklist
|
var blocklist *jwt.Blocklist
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ func LoginWithPubkey(pubkey string, challenge string, signature string) (string,
|
||||||
return "", ErrFailedInvalidateToken
|
return "", ErrFailedInvalidateToken
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := db.Get().Delete(&challenge).Error; err != nil {
|
if err := db.Get().Delete(&challengeObj).Error; err != nil {
|
||||||
logger.Get().Debug(ErrFailedDeleteKeyChallenge.Error(), zap.Error(err))
|
logger.Get().Debug(ErrFailedDeleteKeyChallenge.Error(), zap.Error(err))
|
||||||
return "", ErrFailedDeleteKeyChallenge
|
return "", ErrFailedDeleteKeyChallenge
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue