Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 9b82fa7828
fix: use challengeObj 2023-06-10 01:02:31 -04:00
Derrick Hammer bf576dfaee
fix: change jwtKey to ed25519.PrivateKey 2023-06-10 00:54:57 -04:00
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import (
"time"
)
var jwtKey = []byte{}
var jwtKey = ed25519.PrivateKey{}
var blocklist *jwt.Blocklist
@ -181,7 +181,7 @@ func LoginWithPubkey(pubkey string, challenge string, signature string) (string,
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))
return "", ErrFailedDeleteKeyChallenge
}