@ -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) = @_;