Jump to content


Photo

User Validation via Email


  • Please log in to reply
7 replies to this topic

#1 rscott7706

rscott7706
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts
  • LocationLakeside CA

Posted 12 August 2006 - 08:02 PM

I had a simple but unique, open source, user authentication program some time back, but can't find it now.

It basically would provide a registration page, that allowed the web visitor to register by entering (may have had other fields, but these are what I need):
first name
last name
company
desired username
desired password

The script then posted to a database that contained a 'validate" field.  This field remained (0, 1, or just null - can't remember now).

Now here is the trick, when they submitted the form, it sent an email with a link to the "administrator"  and all the adminsitrator had to do was click on this link within the email and it would change the "validate" field from the one selection (not validated) to another (validated).

The reason I need it this way is the "admin" is an administrative assistant for a non-profit company I am helping.  She is not computer savy to this extent so the email verification is just the 'cats pajamas"...

Most validation programs either approve the user right away, or require the admin logs on to an admin panel to approve the person registering.

Does this strike a cord in anyone?

#2 Jocka

Jocka
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationDallas, Texas

Posted 12 August 2006 - 08:19 PM

when it saves in the database with "activiation" being 0 or null, it should also save an activation code. Then when you click the email it would send you to something like

http://www.yoursite....b4265adfow6742c

then activate.php would compaire the code to any unactivated codes in the database and if it matches, then it would activate that account.


#3 rscott7706

rscott7706
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts
  • LocationLakeside CA

Posted 12 August 2006 - 08:27 PM

Right - gottcha...  And most of the routines I have looked at have that capability (the validation code) except they place the request in the admin panel.  I would like the activation code to be sent to an email address.  There is where my lack of programming limits me.

:)

#4 Jocka

Jocka
  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationDallas, Texas

Posted 12 August 2006 - 08:34 PM

well just edit that very page. When they sign up and it goes to put everything in the database, right after, you should add a code like this:
$email = "youremail@thissite.com";
$headers = 'From: Admin <admin@thissite.com>';
$subject = $username . " Needs Activated";
$msg = $username . " needs to be activated./n/n";
$msg .= "Here is your link: http://www.yoursite.com/activation.php?code=" . $activation_code . ";

if(mail($email, $subject, $msg, $headers)){
   // DONE, IT WORKED, DO WHAT YOU WANT HERE
} else {
   // DIDN'T WORK, GO BACK OR KILL THE PAGE HERE
}


#5 rscott7706

rscott7706
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts
  • LocationLakeside CA

Posted 12 August 2006 - 08:42 PM

Cool...  Thanks - I will try this.

See ya....

8)

#6 whare

whare
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 12 August 2006 - 09:00 PM

Hay try this by phpfreak

http://www.phpfreaks...orials/40/0.php

Used the system to test it and I have now created another system from it that works alot better for me (going to be asking for more help with it though lol) it does have all of your activation by email ect on it so just ahve a look :)

Hope this helps
Whare

#7 rscott7706

rscott7706
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts
  • LocationLakeside CA

Posted 13 August 2006 - 12:17 AM

Thanks Whare - I will try it.

8)

#8 AdRock

AdRock
  • Members
  • PipPipPip
  • Advanced Member
  • 911 posts

Posted 13 August 2006 - 12:30 AM

try this one too.
http://www.plus2net....ge_password.php
If your topic has been solved, please mark the topic as SOLVED.

This helps others from identifying which topics need help still




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users