Compare commits
No commits in common. "9b82fa7828946803289add03fc84be1dc4f86d8b" and "3b1e860256297d3515f0fcd58dd28292c316d79f" have entirely different histories.
9b82fa7828
...
3b1e860256
|
@ -20,7 +20,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
var jwtKey = ed25519.PrivateKey{}
|
||||
var jwtKey = []byte{}
|
||||
|
||||
var blocklist *jwt.Blocklist
|
||||
|
||||
|
@ -181,7 +181,7 @@ func LoginWithPubkey(pubkey string, challenge string, signature string) (string,
|
|||
return "", ErrFailedInvalidateToken
|
||||
}
|
||||
|
||||
if err := db.Get().Delete(&challengeObj).Error; err != nil {
|
||||
if err := db.Get().Delete(&challenge).Error; err != nil {
|
||||
logger.Get().Debug(ErrFailedDeleteKeyChallenge.Error(), zap.Error(err))
|
||||
return "", ErrFailedDeleteKeyChallenge
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue