sign up WITH admin approval ------------------------------------------------ Is there a mod to do this? I have looked at 2 mods for "sign up without admin approval"... Perhaps these can be used by simply modifying their calls to include a check for admin permissions? e.g. sub main (db.pl) # If we allow users to signup, and they want to, go to the signup form. elsif ($auth_signup and $in{'signup_form'} and $per_admin) { &html_signup_form; } elsif ($auth_signup and $in{'signup'} and $per_admin) { &signup; } That way only Admin can do the actual signups???? ------------------------------------ LoisC If you don't want to allow people to signup you just need to set: $auth_signup = 0; in your .cfg file. Then admin can use the admin function (admin display) to add users. ------------------------------------ omegadm Hi Lois (again!) Yes I understand that, but I do want a user to sign-up (Admin). The reason for this is that I have implimented JPDeni's Secure password Lookup - this works nicely as it forces the user to verify their own account (confirming their email address) with a DBMan generated password. They can then change their password once logged on and retreive a password if forgotton. However what I was really looking for was for new sign-ups to be put on "hold" until the Admin authorises them. Just thought this may be a simple work around... I want to avoid the Admin having to assign a unique username/password - JP's mod does this, but anyone can signup. The scenario is: 1] Admin receives an email requesting an account. A username and email address is given by the user 2] Admin then waits for payment to be received - postal cheque 3] Once received, Admin logs on to DBMan and uses JP's mod. The mod generates the password and emails the user Hope this makes sense! So far I have made my change in sub main and added a link in sub html_footer: print qq!| Sign-ups ! if ($per_admin); but DBMan complains it does not understand the command! Best regards, Brian ------------------------------------ omegadm OK got it - just need to move the "# If we allow users to signup..." section into the elsif section of sub main. So in summary... Firstly impliment JPDeni's Secure Password Lookup mod - actually a user verification and lookup mod. Then In db.pl: 1] In sub main, move # If we allow users to signup, and they want to, go to the signup form. elsif ($auth_signup and $in{'signup_form'} and $per_admin) { &html_signup_form; } elsif ($auth_signup and $in{'signup'} and $per_admin) { &signup; } into the elseif statement section above it. Place above else { &html_unkown_action; }" Text in red is an addition so only Admin can do a signup. In html.pl 2] In sub html_login_form (JP's modified version) remove the text about signing up for an account which is displayed to anyone: if ($auth_signup) { print qq| If you do not yet have an account, you may sign up for one here.
|; } 3] Add the following link to sub html_footer print qq!| Sign-ups ! if ($per_admin); That's it HTH someone. Regards, brian