self-registering users

A place for users and developers of the Xataface to discuss and receive support.

Postby dme69 » Sun Jun 17, 2007 1:23 pm

Hello all,
I'm really new to dataface and it seems to be a very good program !

I want to know how to add thee possibility to self register users and how it is working.
I want the users to see only the records they are going to add.

Can someone help me because i'm not a very good php user ?

Thanks.
Regards.
Dominique.
dme69
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

Postby dme69 » Mon Jun 18, 2007 1:49 am

Hello all,

Well ... I think i have found the solution.
I'm working on it.

Dataface is really cool !

Dominique.
dme69
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Mon Jun 18, 2007 10:13 am

Hi Dominique,

Glad to hear you're getting along with Dataface.

You can add a registration feature by adding the following to the [_auth] section of your conf.ini file

allow_register=1

This will give the user a "Register" link on the login page where they can click to register.

If the user clicks this link they will essentially be shown a "new record" form on the users table.Ê In order for this to work, you have to make sure that ALL users have the 'new' permission on the users table.Ê You would probably want to prohibit access to certain fields like the user's role.

You would also want to create a limited default role for new users called "UNVERIFIED" or something so that users can't do anything until they've been verified.

The next version contains an automatic email verification step that verifies a user by sending them an email.Ê The user account is not created then, until the user is verified.

-Steve

--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved