Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalystx::simplelogin::form::login(3pm) [debian man page]

CatalystX::SimpleLogin::Form::Login(3pm)		User Contributed Perl Documentation		  CatalystX::SimpleLogin::Form::Login(3pm)

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::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 = 'active'"to 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. perl v5.14.2 2011-09-05 CatalystX::SimpleLogin::Form::Login(3pm)

Check Out this Related Man Page

CatalystX::SimpleLogin::TraitFor::Controller::Login::LogUser3Contributed Perl DocuCatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)

NAME
CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout - log users out DESCRIPTION
Simple controller role for logging users out. Provides a "logout" action (at /logout by default) which redirects the user to the homepage by default. ACTIONS
logout : Chained('/') PathPart('logout') Args(0) Calls "$c->logout", then redirects to the logout uri retuned by "$self->redirect_after_logout_uri". METHODS
redirect_after_logout_uri Returns the uri to redirect to after logout. Defaults to "$c->uri_for('/');" you can override this by setting the "<redirect_after_logout_uri"> key in config to a path to be passed to "$c->uri_for". Alternatively, you can write your own redirect_after_logout_uri in your Login controller if you are extending CatalystX::SimpleLogin and it will override the method from this role. do_clear_session_on_logout Deletes the session after a logout. To enable this use the following in your config: __PACKAGE__->config('Controller::Login' => { clear_session_on_logout => 1 }); SEE ALSO
CatalystX::SimpleLogin::Controller::Login AUTHORS
See CatalystX::SimpleLogin for authors. LICENSE
See CatalystX::SimpleLogin for license. perl v5.14.2 2012-05-05 CatalystX::SimpleLogin::TraitFor::Controller::Login::Logout(3pm)
Man Page