<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.6082" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><B>From:</B> <A title=vendion@gmail.com
href="mailto:vendion@gmail.com">Adam Jimerson</A> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">I
am trying to display display information about the user currently logged into
my catalyst app but for some reason it is returning blank (or even null).
I am trying to display the uniqid (user id) and username of the current
user. From my template I am calling [% c.user.object.username %] and [%
c.user.object.uniqid %] respectively. I know that my authentication is
working because the "$c->user_exists()" calls in my controller is passing.
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2>You need to use:</FONT>
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2>[% c.user.get('<FONT face="Times New Roman"
size=3>uniqid') %]</FONT></FONT>
<P>and
<P>[% c.user.get('username') %]
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2>The c.user object also has other methods like id()
and get_object() that might help you.</FONT>
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2>Octavian.</FONT>
<P>
<P><FONT face=Arial size=2></FONT>
<P><FONT face=Arial size=2></FONT> </P></BLOCKQUOTE></BODY></HTML>