Hey Zopers!!! I'm a newbie in this excellent package and I need some help. I'm trying to do a simple login page (username and password text fields and a button) that enable or disable the navigation into a Zope project. This mean that if you didn't login you can't be able to surf the project. This sound easy to do but I can't do it :-( Is out there somebody who can help me??? I'll appreciate your suggestions. Thanks a lot. RicardoP
You might take a look at the CookieCrumbler package that handles cookie based authentication and provides an easy interface to login via forms. On Wed, 27 Aug 2003 rpenatez@lattice.com.co wrote:
Hey Zopers!!! I'm a newbie in this excellent package and I need some help. I'm trying to do a simple login page (username and password text fields and a button) that enable or disable the navigation into a Zope project. This mean that if you didn't login you can't be able to surf the project. This sound easy to do but I can't do it :-( Is out there somebody who can help me??? I'll appreciate your suggestions. Thanks a lot. RicardoP
_______________________________________________ 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 )
I'm a newbie in this excellent package and I need some help. I'm trying to do a simple login page (username and password text fields and a button) that enable or disable the navigation into a Zope project. This mean that if you didn't login you can't be able to surf the project. This sound easy to do but I can't do it :-(
You have two things to do: form-based login and restricting your site to authenticated users. Fortunately, both are pretty easy. Form-based login requires something other than the default Zope methods. CookieCutter, as previously suggested, is a good choice. Allowing view access only to authenticated users means a quick trip to the "Security" tab at the most basic level you want to secure: the children of that object will inherit these settings unless told otherwise. Just remove the "Anonymous" role from the permission that allows viewing of content. This is, unless elsewhere changed, "View". Do this and you have to be logged in to see the content (presuming some other role has the permission). You may even want to further restrict the Anonymous role. --jcc
Zope has built in users/authentication. You don't need to built it, but you may want to customize how it works. For that I recommend exUserFolder or CookieCrumbler. On Wed, 2003-08-27 at 14:00, rpenatez@lattice.com.co wrote:
Hey Zopers!!! I'm a newbie in this excellent package and I need some help. I'm trying to do a simple login page (username and password text fields and a button) that enable or disable the navigation into a Zope project. This mean that if you didn't login you can't be able to surf the project. This sound easy to do but I can't do it :-( Is out there somebody who can help me??? I'll appreciate your suggestions. Thanks a lot. RicardoP
_______________________________________________ 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 ) -- Edward Muller
Interlix (http://www.interlix.com) Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Web Hosting - PC Service & Support - Custom Programming - Network Service & Support Specializing in Open Source Solutions
participants (4)
-
Dennis Allison -
Edward Muller -
J Cameron Cooper -
rpenatez@lattice.com.co