[Maypole] problems with Authentication::UserSessionCookie

From: Josef Chladek (j.chladek at wirtschaftsblatt.at)
Date: Tue Jan 25 2005 - 16:58:07 GMT


i habe a strange error whenever i log in: my authenticate looks like
this

sub authenticate {
     my ($self, $r) = @_;
     return OK if $r->action ne "edit";
     $r->get_user;
     return OK if $r->user;

     $r->template("login");
     return OK;
}

so if i click on edit for the first time, i get a login screen, i login
and am able to edit, if i try to edit another page, i get the error:

caught authenticate error: Couldn't load user class BeerDB::Users at
/usr/local/share/perl/5.8.4/Maypole/Plugin/Authentication/
UserSessionCookie.pm line 170, <GEN0> line 3.

line 170 is:

     $user_class->require || die "Couldn't load user class $user_class";

if i comment that line, everything works fine and as excpected. is that
ok to do so or will this break other things?

thanks
josef

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT