X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FDomain.java;h=3ecf728567f6c166aa5dc960091c8c26061c6f28;hp=36b7dc6f651dec5c071f15796ac38c42a3117a56;hb=b37c20b3c3f2bc96ee9a93ac67949e523969be66;hpb=c7830f1550d33c56b160f640ece2436f2de6e30f diff --git a/src/org/cacert/gigi/dbObjects/Domain.java b/src/org/cacert/gigi/dbObjects/Domain.java index 36b7dc6f..3ecf7285 100644 --- a/src/org/cacert/gigi/dbObjects/Domain.java +++ b/src/org/cacert/gigi/dbObjects/Domain.java @@ -129,7 +129,9 @@ public class Domain implements IdCachable, Verifyable { try (GigiPreparedStatement ps = new GigiPreparedStatement("UPDATE `domainPinglog` SET `state`='success' WHERE `challenge`=? AND `state`='open' AND `configId` IN (SELECT `id` FROM `pingconfig` WHERE `domainid`=? AND `type`='email')")) { ps.setString(1, hash); ps.setInt(2, id); - ps.executeUpdate(); + if ( !ps.executeMaybeUpdate()) { + throw new IllegalArgumentException("Given token could not be found to complete the verification process (Domain Ping)."); + } } }