fix: use challengeObj
This commit is contained in:
parent
bf576dfaee
commit
9b82fa7828
|
@ -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