Gossamer Forum
Home : Products : DBMan : Customization :

cannot figure out the login process...

Quote Reply
cannot figure out the login process...
I can't figure out the login process, or at least, I can't turn it into what I want it to be. I've read and read and looked everywhere, and still I am drawing a blank...

Here are my needs:
1. On first accessing the database, the user (who is not logged in) should be able to access the Search function.
2. Users can decide to add themselves into the database. Adding themselves will create an entry with their info AND create their user/password thing.
3. Users can only modify/delete their own entry, deleting their entry would not delete their user information though.

The goal of the database is to have a "Cast and Crew Database", where people interested in working on little films can leave their information, for others to see.

Thanks for any pointers.

Nicole

Quote Reply
Re: cannot figure out the login process... In reply to
You might take a look at http://www.jpdeni.com/...ds/limitrecords.html. There is a mod there that allows users to add a record at the time of signup. You will probably want to have just one record per user.

If you're going to do this and you want to use the secure password lookup mod, be sure to install the password lookup mod before you install this one.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: cannot figure out the login process... In reply to
Thanks, that seems to be doing part of the job I need to do. The other thing I haven't been able to figure out is how to set all the permissions so that a new user CAN create a user account.

Nicole

Quote Reply
Re: cannot figure out the login process... In reply to
If you use the mod, then all you have to do is set $auth_signup = 1;.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: cannot figure out the login process... In reply to
It's been set since the beginning... But I have it partially figured out now. I can at least access the Create Account screen, although it didn't create a new account. :(


Quote Reply
Re: cannot figure out the login process... In reply to
Are you using the password lookup mod?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: cannot figure out the login process... In reply to
not yet.. I'm still trying to figure out *what* I'm supposed to be doing..

I'll be more precise (if we want this to get anywhere)

1. Do I need auth_no_authentication or not? I assume I do need authentication, because there does need to be authentication for modifying entries.
2. Now, with authentication required, how do I bypass the login screen to get to the search screen directly? Search is available to all, without having to log in.
3. To allow users to create their own entries, I need a link with db.cgi?signup_form=1, right? Then I put in your mods so that as soon as they sign up, they're taken to the Add Entry form.


Quote Reply
Re: cannot figure out the login process... In reply to
Yes, you need to set $auth_no_authentication = 0;.

In Reply To:
Now, with authentication required, how do I bypass the login screen to get to the search screen directly? Search is available to all, without having to log in.
Set

$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);


The link to the search form should be
...db.cgi?db=default&uid=default&view_search=1

Change default if your .cfg file is named something else.

In Reply To:
To allow users to create their own entries, I need a link with db.cgi?signup_form=1, right?
Right. Take a look at http://www.jpdeni.com/dbman/Mods/bugfix.txt. The last thing on the page is a replacement for sub html_login_form, which includes the link from the login page to the signup page.

If you want to have a link on a static .html page, just include ...db.cgi?signup_form=1 in the link.

In Reply To:
Then I put in your mods so that as soon as they sign up, they're taken to the Add Entry form.
I thought you wanted them to add a record at the same time as they sign up. One form for both the record and signup. You said earlier:

Adding themselves will create an entry with their info AND create their user/password thing.

But before you do any of this, make sure everything else works correctly.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: cannot figure out the login process... In reply to
thanks for the answer. A nasty cold, coupled with a late term pregnancy has put an end to my work on that project. I'll pick it up again after the birth, whenever the kid will allow me to :(
I had just a few days to finish it, and the cold is sending me to bed instead.
ARGH...

Thanks anyway, I did make a lot of progress in my understanding of how DBman works.