NAME

Catalyst::Plugin::Auth::Utils - Methods and actions to simplify authentication

SYNOPSIS

    use Catalyst qw/
        HTML::Widget
        Authentication
	Authentication::Store::DBIC
	Authentication::Credential::Password
	Auth::Utils
    /;

    # in your Controller::Root.pm

    sub auto : ActionClass('Auth::Check') {
        $_[1]->stash->{login_action} = 'login';
    } 

    sub login : Local : ActionClass('Auth::Login') {}
    
    sub logout : Local : ActionClass('Auth::Logout') {}

DESCRIPTION

Methods and actions to simplify authentication

METHODS

$c->login_widget()

Returns a HTML::Widget object filled with login and password fields to be used in login forms.

$c->redirect_to_login_unless_user_exists()

This method redirects to the login action unless an authenticated user is found

SEE ALSO

Catalyst, HTML::Widget, Catalyst::Plugin::HTML::Widget

AUTHOR

Zbigniew Lukasiak> zz bb yy @ gmail.com

Jonas Alves, jonas.alves at gmail.com

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.