diff --git a/kwotes-lib.pl b/kwotes-lib.pl index d74110d..d3170c1 100755 --- a/kwotes-lib.pl +++ b/kwotes-lib.pl @@ -64,6 +64,11 @@ sub validate_captcha { # get count my $row = $sth->fetchrow_hashref(); my $count = $row->{"count"}; + + # delete it + $sth = $dbh->prepare("DELETE FROM captchas WHERE id=?"); + $sth->bind_param(1, $cid); + $sth->execute(); # return return ($count>0);