Browse Source

* CMTD::Helpers->captcha_by_id

master
Alex 'AdUser' Z 7 years ago
parent
commit
427d545ae3
  1. 2
      lib/CMTD/Helpers.pm

2
lib/CMTD/Helpers.pm

@ -82,7 +82,7 @@ sub register {
});
$app->helper(captcha_by_id => sub {
my ($c, $cid) = @_;
return $c->app->db->select('captcha', '*', {cid => $cid})->hash;
return $c->app->db->select('captcha', '*', {id => $cid})->hash;
});
$app->helper(captcha_solve => sub {
my ($c, $id, $input) = @_;

Loading…
Cancel
Save