Jifty::Plugin::Authentication::Password::Action::Logout - process logout


Jifty documentation Contained in the Jifty distribution.

Index


Code Index:

NAME

Top

Jifty::Plugin::Authentication::Password::Action::Logout - process logout

arguments

Return the email and password form fields

take_action

Nuke the current user object


Jifty documentation Contained in the Jifty distribution.
use warnings;
use strict;

package Jifty::Plugin::Authentication::Password::Action::Logout;
use base qw/Jifty::Action/;

sub arguments {
    return ( {} );
}

sub take_action {
    my $self = shift;
    Jifty->web->current_user(undef);
    return 1;
}

1;