Skip to content

HTML::FormHandler::TraitFor::Captcha issues #107

Open
@ghenry

Description

@ghenry

"Setting both default and builder is not allowed. at /usr/local/lib/perl/5.14.2/Moose/Exporter.pm line 419 Moose::has('+wrapper_class', 'default', 'captcha') called at /usr/local/share/perl/5.14.2/HTML/FormHandler/Field/Captcha.pm line 15

My code:

package SureVoIP::Portal::Form::Auth::Reset;

use strict;
use warnings;

use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
with 'HTML::FormHandler::TraitFor::Captcha';
with 'HTML::FormHandler::Render::Simple';

has_field 'email' => (
    type     => 'Email',
    label    => 'Email',
    required => 1,
);

has_field '+captcha' => (
    id => 'captcha',
    height => '24',
    width  => '70'
);

no HTML::FormHandler::Moose;
1;

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions