On 03.Mai 2003 - 17:38:10, Troy Farrell wrote:
Look in the source for 'manage_zmi_logout' in zopedir/lib/python/App/Management.py
That doesn't help me much, I see that I can call manage_zmi_logout to logout the user, but how do I get him to log in? I don't think that I can do it with such a message box, as far as I can see, this can only be done, by setting the permissions on the file. But this doesn't work for me, as anybody should be able to view a certain page, but only logged in users should see a link that points to an edit-form So the question is, which method to call if I have a username and a password, I didn't find anything in the UserFolder API. I will try to look further on the source of the API, but maybe someone can directly point me to the right spot. Andreas
Troy
Andreas Pakulat wrote:
Hi,
I would like to have a login Link on the top of my page, but I don't know how I can login a user. I have searched through the help, but didn't find a method that causes the MessageBox, that appears if I go to a /manage Url, to appear.
And I also want the users to get logged of again.
I know that I can write a dtml/zpt page and call a script with values from a form, and then in the script set the Authenticated User if he exists in the User Folder, but I don't see how to verify the password. Also I really would like to have it with the messagebox and not a separate form to fill in.
Andreas
-- Letzte Worte eines Flugkapitäns: "Wir landen in wenigen Minuten planmäßig"