Florian Ragwitz > CatalystX-SimpleLogin-0.01 > Catalyst::ActionRole::NeedsLogin

Download:
CatalystX-SimpleLogin-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: CatalystX-SimpleLogin-0.18

NAME ^

Catalyst::ActionRole::NeedsLogin - checks if a user is logged in and if not redirects him to lögin page

SYNOPSIS ^

    package MyApp::Controller::NeedsAuth;

    sub something : Path Does('NeedsLogin') {
        # Redirects to /login if not logged in
    }

    sub something : Path Does('NeedsLogin') :LoginRedirectMessage('Your custom Message') {
        # Redirects to /login if not logged in-
    }

    # Turn on in config
    MyApp->config('Contoller::Login' => { traits => ['WithRedirect'] });

DESCRIPTION ^

Provides a ActionRole for forcing the user to login.

-head1 WRAPPED METHODS

FIXME

METHODS ^

FIXME

SEE ALSO ^

CatalystX::SimpleLogin::ControllerRole::Login::WithRedirect
CatalystX::SimpleLogin::ControllerRole::Login
CatalystX::SimpleLogin::Form::Login

AUTHORS ^

See CatalystX::SimpleLogin for authors.

LICENSE ^

See CatalystX::SimpleLogin for license.

syntax highlighting: