6 Oct
2000
6 Oct
'00
8:37 a.m.
On Fri, 06 Oct 2000, Andy McKay wrote:
AUTHENTICATED_USER is not a string so need to cast it before doing the string operation:
<dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))">
<dtml-var AUTHENTICATED_USER> effectively does the same thing, it calls the string representation of AUTHENTICATED_USER.
A more 'polite' way to get the user name is to use AUTHENTICATED_USER.getUserName(). Not as short, true, but definitely more explicit.
Agreed. Any remember, several user managers don't completely conform to the AUTHENTICATED_USER "standards", and you might see calling AUTHENTICATED_USER directly fail completely. ;] Knight knight@phunc.com