From: "benni23" <[email protected]>
Hey,
yes, that's clear. Of course the user has to log in such that there might be
a userLogin value somewhere. The problem of empty userLogin or autoUserLogin
attribute even after a login. Concrete example is the CategoryDetails.groovy
script the calls the "getProductCategoryAndLimitedMember" service with a
self-constructed map of parameters. In that case the userLogin is missing. I
wanted to take it from the session and put it in the map but I did not find
it there.
Should be, see http://docs.ofbiz.org/x/axE
Jacques
regards,
Benni
BJ Freeman wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
unless you force the user to lognin before seeing any products you will
not also have login.
you can change the index.jsp
<%pageContext.forward("control/main");%>
to a new page that just has your login
then that page can redirect to control/main
another way is to
change the
<request-map uri="checkLogin" edit="false">
<security https="true" auth="false"/>
to
<security https="true" auth="true"/>
in the controller.
benni23 sent the following on 3/26/2009 8:01 AM:
Hi,
i wonder if there is a standard way of accessing the userLogin value of a
user logged in into the ecommerce application? I want to restrict the
visibility of products by customer groups and thus I need to get a hold
on
the userLogin. The problem is that sometimes I find "userLogin" empty
sometimes not. Sometime "autoUserLogin" does the trick. Isn't there a
standard way to access this value?
regards,
Benni
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJy7WQrP3NbaWWqE4RAsaHAJ0amckM2eljUMjvvTVqBXAbsK8j8QCfb/aV
RRZfokdUDkUoVq0cCriKWO4=
=MOps
-----END PGP SIGNATURE-----
--
View this message in context:
http://www.nabble.com/Retrieving-UserLogin-Value-tp22723829p22737702.html
Sent from the OFBiz - User mailing list archive at Nabble.com.