Compare commits

..

No commits in common. "9b82fa7828946803289add03fc84be1dc4f86d8b" and "3b1e860256297d3515f0fcd58dd28292c316d79f" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import (
"time" "time"
) )
var jwtKey = ed25519.PrivateKey{} var jwtKey = []byte{}
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(&challengeObj).Error; err != nil { if err := db.Get().Delete(&challenge).Error; err != nil {
logger.Get().Debug(ErrFailedDeleteKeyChallenge.Error(), zap.Error(err)) logger.Get().Debug(ErrFailedDeleteKeyChallenge.Error(), zap.Error(err))
return "", ErrFailedDeleteKeyChallenge return "", ErrFailedDeleteKeyChallenge
} }