I know that some DBMan users have modified their scripts in order to let people register by themselves and set up their passwords. As I am creating a database that collects information about people, I would like people to enter their data when they register, and don't let them add more records. Does anybody know how to do this? Thanks everybody!
May 11, 1999, 9:27 PM
Veteran / Moderator (8669 posts)
May 11, 1999, 9:27 PM
Post #2 of 2
Views: 1501
You don't want to add a lot of extra data to your password file. It will slow things down and require a lot of editing of the scripts.
What you'll need to do is set
$auth_allow_default = 1;
@auth_default_permissions = (0,1,0,0,0);
$auth_modify_own = 1;
in the default.cfg file.
Then you'll need to copy part of the admin_display subroutine to the add_record subroutine so that it will write to both the database file and the password file at the same time.
I have a number of clients I'm working with right now, but when I have some time, I'll help you with it.
------------------
JPD
What you'll need to do is set
$auth_allow_default = 1;
@auth_default_permissions = (0,1,0,0,0);
$auth_modify_own = 1;
in the default.cfg file.
Then you'll need to copy part of the admin_display subroutine to the add_record subroutine so that it will write to both the database file and the password file at the same time.
I have a number of clients I'm working with right now, but when I have some time, I'll help you with it.
------------------
JPD