[Catalyst] forgotten logins
Yuval Kogman
nothingmuch at woobling.org
Sat Jan 28 01:20:58 CET 2006
On Sat, Jan 28, 2006 at 00:30:55 +0100, Wijnand Wiersma wrote:
> Hi list,
>
> my app sessions work now, login works but it seems the logged in user is not tied to the session.
> In my template I check for c.req.user to see if the user is logged in. If the user is logged in no login form is displayed but a link to the users profile.
> This only works when I login, when I click one link in the website I get the login form back.
$c->request->user is from the old auth plugins, and it's pretty
sucky.
Please use the new authentication framework, as discussed in
http://catalyst.perl.org/calendar/2005/14
The check for whether or not a user is logged in is now
[% IF c.user_exists %]
Hi, [% c.user.name %]
[% ELSE %]
login form ..
[% END %]
Ciao!
--
() Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418 perl hacker &
/\ kung foo master: /me sushi-spin-kicks : neeyah!!!!!!!!!!!!!!!!!!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060128/4daea08e/attachment.pgp
More information about the Catalyst
mailing list