I am going to use dbman as a searchable database of users. So, I have just put into place the one record per user mod (option #4).
I would like the users to be able to change their password on the modify record form.
I tried to figure out how to do this....and failed. ;-)
I have created a modify_record_form sub procedure. This (currently) is nearly identical to the add_record_form as discussed in the MOD.
I have also added in the db.cgi sub modify_record:
$in{'login'} = 1;
$db_uid = "";
$in{'userid'} = $in{$db_cols[$auth_user_field]};
($status, $uid, $per_view, $per_add, $per_del, $per_mod, $per_admin) = &auth_check_password;
if ($status eq "ok") {
db_script_link_url = "$db_script_url?db=$db_setup&uid=$db_uid";
($db_userid) = $db_uid =~ /([A-Za-z0-9]+)\.\d+/;
}
#--------------------------------------------------------------------
as this code was needed in the sub add_record, I thought it would be needed here too.
What do I need to do to achieve the following:
1) in the modify form, the password field should auto-populate with it's current value
2) submission of the modify form will update the users password (and UserID if changed).
Thanks for any help,
David Meade
david@davidmeade.com
------------------
I would like the users to be able to change their password on the modify record form.
I tried to figure out how to do this....and failed. ;-)
I have created a modify_record_form sub procedure. This (currently) is nearly identical to the add_record_form as discussed in the MOD.
I have also added in the db.cgi sub modify_record:
Code:
#------------------------------------------------------------------- $in{'login'} = 1;
$db_uid = "";
$in{'userid'} = $in{$db_cols[$auth_user_field]};
($status, $uid, $per_view, $per_add, $per_del, $per_mod, $per_admin) = &auth_check_password;
if ($status eq "ok") {
db_script_link_url = "$db_script_url?db=$db_setup&uid=$db_uid";
($db_userid) = $db_uid =~ /([A-Za-z0-9]+)\.\d+/;
}
#--------------------------------------------------------------------
as this code was needed in the sub add_record, I thought it would be needed here too.
What do I need to do to achieve the following:
1) in the modify form, the password field should auto-populate with it's current value
2) submission of the modify form will update the users password (and UserID if changed).
Thanks for any help,
David Meade
david@davidmeade.com
------------------