From f60f82026c0f4956f157bd6f8b17113c1816f70c Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 9 Feb 2006 13:24:49 +0000 Subject: aggiunto logout git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@176 fcb26f47-9200-0410-b104-b98ab5b095f3 --- GroLUG/lib/GroLUG/C/Iscritti.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'GroLUG/lib') diff --git a/GroLUG/lib/GroLUG/C/Iscritti.pm b/GroLUG/lib/GroLUG/C/Iscritti.pm index ee6ee0c..513e6ac 100644 --- a/GroLUG/lib/GroLUG/C/Iscritti.pm +++ b/GroLUG/lib/GroLUG/C/Iscritti.pm @@ -15,6 +15,14 @@ sub login :Global { } } +sub logout :Global { + my ( $self, $c ) = @_; + + $c->logout(); + + $c->res->redirect($c->uri_for('/')); +} + sub index :Private { my ( $self, $c ) = @_; -- cgit v1.2.3