• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

New user registration requires admin authorisation

Hi,
I've a Register/login/Logout process working well with all stored in Mysql.
I'd like to add that when a new user registers :-
They receive an email link which is used to prove the email address.
The admin receives and email to make the choice of allowing the new user access.
I think this is a pretty typical CMS system.

What is the best way to add the extra processes.
thanks
0
encodeme
Asked:
encodeme
  • 2
  • 2
1 Solution
 
Hugh McCurdyCommented:
PHP has a built in mail feature.  You might need some help getting it working but please read this  http://www.w3schools.com/php/php_mail.asp  so that you at least understand theory.  You might want to use a different method of sending mail but knowing the native way that PHP sends mail would be good.  (Sometimes mail sent by PHP gets blocked in spam filters)

Since a human will decide to grant access, the from address of the e-mail you send should be a real address that is monitored by the admin.

Finally, you can make a form that accepts e-mail address and updates the Y/N access flag.  I suggest this be somewhat advanced.  The admin types in or copy/pastes the e-mail and submits.  The CGI (PHP) looks up the record in mySQL and shows you some information (such as name) and then has a checkbox to let you change the permission level.  (You might choose to ban someone who previously had access).  I can help you with this but my solution is complicated and you'd have to change it.  (I used it as part of my final project in a Web Dev class).

I expect you'll have a lot of questions related to this task.  For now, I'm just giving you the overview.

I will be out most of today but other experts should be around.
0
 
encodemeAuthor Commented:
Hi, Many thanks,
 I'll start to go down that route and report back.
0
 
encodemeAuthor Commented:
Thanks again for the direction.
I've  got a working solution now, and will try refine it.
0
 
Hugh McCurdyCommented:
Great.  Glad it worked.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now