Gossamer Forum
Home : Products : DBMan : Installation :

allowing users to sign up onto the database

Quote Reply
allowing users to sign up onto the database
I am confused on how you get a user to sign up on the database and enter their information. I have tried to set the auth_* to an option which will allow the user to skip the logon page if they wish to just view the other entries into the database. Should the script always start with the logon page? I would like to skip it in a case someone wants to just view records. How do I get the script to allow the users to sign themselves up? I always start at the db.cgi page. Is that correct?
Quote Reply
Re: allowing users to sign up onto the database In reply to
Okay. You want users to signup online in order to add, modify or delete, and you want users who have not logged in to be able to view. Right?

Set the following:

Code:
$auth_no_authentication = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
@auth_signup_permissions = (1,1,1,1,0);
$auth_modify_own = 1;
$auth_view_own = 0;
$auth_user_field = [the number of the userid field];

For users to sign up or log in, use the following URL:
http://www.server.com/cgi-bin/db.cgi

There should be a link there to allow signup. If not, let me know and I'll give you the code for it.

If you would like to create a link directly to the signup form, use
http://www.server.com/cgi-bin/db.cgi?db=default&signup_form=1

For users to view without logging in, use
http://www.server.com/cgi-bin/db.cgi?db=default&uid=default

(Assuming that your .cfg file is called "default.cfg".)


------------------
JPD