Mohan,
The standard Zope user folder handles only basic authentication which
generally needs to be done via a popup dialog on your browser. At some
point, a user needs to type his authentication credentials into the dialog.
The Zope security machinery handles this in the background.
To force a popup box to be displayed:
dtml-raise Unauthorized
You are not logged in.
/dtml-raise
There is a user folder product named "UserDb" which supports cookie
authentication that lets you create a custom login form. There is also the
"LoginManager" product, which I think allows you to do the same (though I've
not used it).
- Original Message -
From: "Mohan Baro" [EMAIL PROTECTED]
To: "Michal Krejza" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001 12:45 PM
Subject: RE: [Zope] Login dialog - another newbie question
Hi there,
I have been trying to do the same. i.e. create a logon form,
what I have been told so far is that:
1) I have to use the method user.authenticate(,)
2) however I have found no documentation for user.authenticate() anywhere
3) others have suggested that I read the source:
ZOPE_DIR/lib/python/AccessControl/User.py
I think its has to be something like.
dtml-call "REQUEST.set('name', 'k.laird.1')"
dtml-call "REQUEST.set('password', '5678')"
dtml-call "acl_users.authenticate('Login', REQUEST, RESPONSE)"
Let me know if you manage to create a login form.
Mohan.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Michal Krejza
Sent: Thursday, January 04, 2001 3:38 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Login dialog - another newbie question
Hi Zopitas,
I have problem with authentication in Zope. I made small site in our
company, and some informations are visible for anonymous user and some for
managers. So I need to authorize users before they connect to restricted
area. It's late for me, becose access to restricted methods is able
through
links, which are visible only for managers. Is there any way to make some
form for login to Zope. But without another application like LoginManager
or
MySQL User Folder and etc. My Zope server is running on WinNT and I have
problem with these application.
Michal Krejza
When users connect to a restricted area a dialog box pops up that
looks more or less like this:
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )