I am actually going to do something like this today. My approach will be the following:
Handling user registration: Unfortunately, farcry (v.3) tracks user information in two separate tables/objects: dmProfile has first, last, phone, etc., and dmUser contains username/password. Additionally, dmUser controls security access (group membership and by extension user permissions). The form part is easy--it can be simply a regular form (firstname, lastname, email, username (use email instead?), password, phone, fax)--basically all the content fields in dmUser and dmProfile. It will submit to a dmInclude page that will create a new entry in dmProfile (via farcry.core.packages.types.dmProfile) as well as in dmUser (farcry.core.packages.farcry.authentication?). After adding the two entries, the user needs to be added to groups. I'm not sure what your requirements are--maybe you only have one group, maybe the group they get added to depends on other submitted form information. Handling user login: There are two possibilities here: use the built-in farcry framework, and in the nav tree, remove the anonymous 'view' permission. Add in your custom group(s) to which you are adding your users. When the page is requested (and the user is not logged in), farcry redirects to login screen. User logs in, and hopefully is in a group allowed to see that resource. If you are using only a dmInclude for your content, you can also simply add the authentication logic into the dmInclude. I do this for our LMS: the only protected page is a dmInclude that show a list of courses provisioned to the user based on his group membership. So the dmNav node is public and viewable, but when the dmInclude executes, it throws the user to the login page if they are not logged in (see session.authentication structure). If they are logged in, then the dmInclude executes as it normally would. [EMAIL PROTECTED] wrote: > Hello all, > > Can anyone help me with some docs on how to make a simple "user area" > that requires registration/login. I assume i can use the inbuilt > security thing, i just cant find any docs/tutorials on how to achieve > it.... > > > Thanks > > Mike > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
