GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYSTX::SIMPLELOGIN::FORM::LOGIN (3)

.ds Aq ’

NAME

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

CONTENTS

DESCRIPTION

A HTML::FormHandler form for the login form.

FIELDS

username
password
remember
submit

METHODS

validate
add_auth_errors

SEE ALSO

CatalystX::SimpleLogin::Controller::Login

CUSTOMIZATION

By default, the params passed to authenticate() are ’username’ and ’password’. If you need to use different names, then you’ll need to set the correct value(s) via login_form_args in the configuration. The keys are ’authenticate_username_field_name’ and/or ’authenticate_password_field_name’.



    __PACKAGE__->config(
        Controller::Login => {
            login_form_args => {
               authenticate_username_field_name => name,
               authenticate_password_field_name => password2,
            },
        },
    );



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 => [
                   +submit => { value => Login },
               ]
            }
        },
    );



Additional fields can be added:



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



Additional arguments to the authenticate call can be added: If your user table has a column status and you want only those with status = activeto be able to log .in



    __PACKAGE__->config(
        Controller::Login => {
            login_form_args => {
                authenticate_args => { status => 1 },
            },
        },
    };



AUTHORS

See CatalystX::SimpleLogin for authors.

LICENSE

See CatalystX::SimpleLogin for license.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYSTX::SIMPLELOGIN::FORM::LOGIN (3) 2011-09-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.