forgot something
This commit is contained in:
parent
df631da6e3
commit
8da70ca53a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user