On Sun, Mar 8, 2009 at 10:35, Dvir Bar-lev <dvi...@puresight.com> wrote: > A user goes to the site, he see the log in screen that has 2 entry fields - > user name and password. > The user enteres the data and presses the submit button. > Now I want to take what the user entered and see if I have the same user and > password defined in acl_users folder, if so I want to give him the role that > that user in the acl_users folder have.
Yup, this is all automatic. > And than based on that role direct him to the appropriate page Aha. So your questions are two: How can I have a HTML login page, and how can I redirect the user to different pages after login, based on the roles. PAS certainly helps you with this, as it has support for having HTML forms for login. Also, as Andreas mentioned, there is a product called CookieCrumbler that can help you with this without using PAS. So how do you use PAS? You start using PAS by replacing your current acl_user folder with the Pluggable Auth Service. In this you add plugins. The plugins do different things. The User Manager will store users and passwords. The ZODB Role Manager will store role assigments to users. The Cookie Auth Helper will enable you to have a login form. Create all these, enable them, fiddle around a bit. Then you probably need to ask more questions, and I won't know enough about PAS to answer, but somebody else probably will. -- Lennart Regebro: Pythonista, Barista, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )