On Sat, Oct 28, 2006 at 12:26:49PM +0100, Aaron Trevena wrote: > Hi Josef, > > I'd reccomend making it a normal sub and calling it from authorise() > if $r->table() eq 'logout'. >
Ok, I've added:
sub authenticate {
my ($self, $r) = @_;
if ($r->{table} eq "logout") {
Maypole::Plugin::Authentication::UserSessionCookie::logout($self,
$r);
$r->template("frontpage");
return OK;
}
...
}
to the beginning of my controller class, and it does get called when I
call logout; however the URLs in the frontpage don't get computed
correctly. :/
I've got this in my 'header' template:
[% link("logout", "logout", "", "Logout") %]
which generates a link which causes the logout code to be run,
but then the links on frontpage are constructed as if logout is a table.
:/.
Joe
--
Josef Karthauser ([EMAIL PROTECTED]) http://www.josef-k.net/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================
pgpbUgtqREtJa.pgp
Description: PGP signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Maypole-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maypole-users
