beltram 3 лет назад
Родитель
Сommit
613e6cae6e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      acme/challenge.go

+ 2 - 2
acme/challenge.go

@@ -563,12 +563,12 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
 		return WrapErrorISE(err, "Failed parsing dpop token")
 	}
 
-	order, err := db.GetOrdersByAccountID(ctx, ch.AccountID)
+	orders, err := db.GetAllOrdersByAccountID(ctx, ch.AccountID)
 	if err != nil {
 		return WrapErrorISE(err, "Could not find current order by account id")
 	}
 
-	if err := db.CreateDpop(ctx, order[0], dpop); err != nil {
+	if err := db.CreateDpop(ctx, orders[0], dpop); err != nil {
 		return WrapErrorISE(err, "Failed storing DPoP token")
 	}