[Zope] authenticate user
Pedro Silva
Pedro Silva" <pedro.silva@ruido-visual.pt
Mon, 31 Jan 2000 13:51:01 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01BF6BF2.35BB7AC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
I'm new with Zope and I'm having some difficulties to authenticate a =
user and his password in the login. I'm trying to use this code:
<dtml-with acl_users>
<dtml-if "AUTHENTICATED_USER.authenticate('<dtml-var user>','etcUser') =
and AUTHENTICATED_USER.authenticate('<dtml-var pass>','passwd')>
This code is not working, can you help me to do this.
Thanks
Pedro=20
------=_NextPart_000_0016_01BF6BF2.35BB7AC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm new with Zope and I'm having some =
difficulties=20
to authenticate a user and his password in the login. I'm trying to use =
this=20
code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> <dtml-with =
acl_users></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <dtml-if=20
"AUTHENTICATED_USER.authenticate('<dtml-var user>','etcUser') and=20
AUTHENTICATED_USER.authenticate('<dtml-var=20
pass>','passwd')></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>This code is not working, can you help =
me=20
to do this.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Pedro </FONT></DIV></BODY></HTML>
------=_NextPart_000_0016_01BF6BF2.35BB7AC0--