CatalystX::SimpleLogin::Controller::Login - Configurable login controller
# For simple useage exmple, see CatalystX::SimpleLogin, this is a # full config example __PACKAGE__->config( 'Controller::Login' => { login => 'WithRedirect', # Optional, enables redirect-back feature actions => { login => { # Also optional PathPart => ['theloginpage'], # Change login action to /theloginpage }, logout => {}, }, }, );
Controller base class which exists to have login roles composed onto it for the login and logout actions.
Cause form instance to be built at application startup.
Login action
Displays the login form
Processes a submitted login form, and if correct, logs the user in and redirects
If you are using WithRedirect (i.e. it has been set in your config), then you need to set 'redirect_after_login_uri' if you want something other than the default, which is $c->uri_for('/');
$c->uri_for('/');
Renders the login form. By default it just calls the form's render method. If you want to do something different, like rendering the form with a template through your view, this is the place to hook into.
See CatalystX::SimpleLogin for authors.
See CatalystX::SimpleLogin for license.
To install CatalystX::SimpleLogin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::SimpleLogin
CPAN shell
perl -MCPAN -e shell install CatalystX::SimpleLogin
For more information on module installation, please visit the detailed CPAN module installation guide.