| CatalystX-SimpleLogin documentation | view source | Contained in the CatalystX-SimpleLogin distribution. |
CatalystX::SimpleLogin::Controller::Login - Configurable login controller
# For simple useage exmple, see CatalystX::SimpleLogin, this is a
# full config example
__PACKAGE__->config(
'Controller::Login' => {
traits => [
'WithRedirect', # Optional, enables redirect-back feature
'-RenderAsTTTemplate', # Optional, allows you to use your own template
],
actions => {
login => { # Also optional
PathPart => ['theloginpage'], # Change login action to /theloginpage
},
},
},
);
See CatalystX::SimpleLogin::Form::Login for configuring the form.
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.
Redirect to the login action.
Displays the login form
Processes a submitted login form, and if correct, logs the user in and redirects
A stub action that is anchored at the root of the site ("/") and does not require registration (hence the name).
If you are using WithRedirect (i.e. by default), then this methd is overridden to redirect the user back to the page they intially hit which required authentication.
Note that even if the original URI was a post, then the redirect back will only be a GET.
If you choose NOT to compose the WithRedirect trait, then you can set the
uri users are redirected to with the redirect_after_login_uri config key,
or by overriding the redirect_after_login_uri method in your own login
controller if you need custom logic.
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.
A stub action that is anchored at the root of the site ("/") and does require registration (hence the name).
See CatalystX::SimpleLogin for authors.
See CatalystX::SimpleLogin for license.
| CatalystX-SimpleLogin documentation | view source | Contained in the CatalystX-SimpleLogin distribution. |