forgot something
This commit is contained in:
parent
df631da6e3
commit
8da70ca53a
@ -65,6 +65,11 @@ sub validate_captcha {
|
|||||||
my $row = $sth->fetchrow_hashref();
|
my $row = $sth->fetchrow_hashref();
|
||||||
my $count = $row->{"count"};
|
my $count = $row->{"count"};
|
||||||
|
|
||||||
|
# delete it
|
||||||
|
$sth = $dbh->prepare("DELETE FROM captchas WHERE id=?");
|
||||||
|
$sth->bind_param(1, $cid);
|
||||||
|
$sth->execute();
|
||||||
|
|
||||||
# return
|
# return
|
||||||
return ($count>0);
|
return ($count>0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user