The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CatalystX::SimpleLogin::Form::Login - validation for the login form

DESCRIPTION

A HTML::FormHandler form for the login form.

FIELDS

username
password
remember
submit

METHODS

validate
add_auth_errors

SEE ALSO

CatalystX::SimpleLogin::ControllerRole::Login

CUSTOMIZATION

If the password and username fields have different names in your authentication, set them using the field's 'accessor' attribute. You can also change the way that the form is displayed by setting attributes. In MyApp.pm:

    __PACKAGE__->config(
        'Controller::Login' => {
            login_form_args => {
               login_error_message => 'Login failed',
               field_list => {
                   '+username' => { accessor => 'user_name' },
                   '+submit' => { value => 'Login' },
               }
            }
        },
    );

Additional fields can be added:

   field_list => {
       'foo' => ( type => 'MyField' ),
       'bar' => { type => 'Text' },
   }

AUTHORS

See CatalystX::SimpleLogin for authors.

LICENSE

See CatalystX::SimpleLogin for license.