fix: PostPubkeyLogin should be lowercasing the pubkey and signature
This commit is contained in:
parent
d680f0660f
commit
09d53ffa76
|
@ -236,6 +236,9 @@ func (a *AuthController) PostPubkeyLogin() {
|
|||
return
|
||||
}
|
||||
|
||||
r.Pubkey = strings.ToLower(r.Pubkey)
|
||||
r.Signature = strings.ToLower(r.Signature)
|
||||
|
||||
// Retrieve the key challenge for the given challenge.
|
||||
challenge := model.KeyChallenge{}
|
||||
if err := db.Get().Where("challenge = ?", r.Challenge).Preload("Key").First(&challenge).Error; err != nil {
|
||||
|
|
Loading…
Reference in New Issue