Gossamer Forum
Home : Products : DBMan : Customization :

could users create their own accounts?

Quote Reply
could users create their own accounts?
Hi!

I want the users create their own accounts themselves with all permisions (except ADMIN).
The defaukt user must have only a VIEW option.

I've tried manu times, by changing permissions in .cfg file, but nothing.

Thanx.

Quote Reply
Re: could users create their own accounts? In reply to
Do you have your .cfg setup like this?


# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);

# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.( 0=no, 1=yes)
$auth_signup = 1;

# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);


You must also have a call to the signup page somewhere... mine is on the login page like this:

if ($auth_signup) {
print qq|<center>You can sign up for an account online right <a href="$db_script_url?db=$db_setup&signup_form=1">here</a>.</center>|;
}


You may have some difficutly, tho... if you're calling your script (or any part of it) with "&uid=default" - if this bypasses the login page, you may want to add a call to the sign-up in the footer for the default user to access.

Hope this helps!

keienb