4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Authenticate User's Email Address Before Access Page
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
precious
WebHelper
WebHelper


Joined: 06 Apr 2002
Posts: 65

PostPosted: Fri Sep 26, 2003 6:24 am (14 years, 1 month ago) Reply with QuoteBack to Top

Greetings,

I am looking for a free Perl script that will "Authenticate User's Email Address Before Allow To Access Protected Webpage". Basically, this is what I look for in the script:

Webpage ask the user to register and afterwards prompt him that the details of his login is delivered to his registered email address.

Let me have your recommendation, preferably you have used the script before.

TIA
OfflineView User's ProfileFind all posts by preciousSend Personal Message
jayant
Team Member



Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India

PostPosted: Fri Sep 26, 2003 11:59 am (14 years, 1 month ago) Reply with QuoteBack to Top

There are many ways to achieve this.
one way is to store a field whether email address has been validated on not.

when a user logs in , check whether the email address is valid, if not, allow the user to validate the email address and also send the validation mail again if required. if email address if valid proceed normally.

Eg:-
Code:

<?php
// do mysql_connect etc.

// also supposing that $username, $password are set with the username and password
// as the ones that were entered in the form by the user

$res = mysql_query("SELECT valid_email FROM users WHERE username = '$username' AND password = '$password' ");

if($userinfo = mysql_fetch_array($res)) {
    if($userinfo['valid_email']==1) {
        //valid email
    }
    else {
        // invalid email address
    }
}
else {
    // invalid username/password
}


________________________________
Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test
OfflineView User's ProfileFind all posts by jayantSend Personal MessageVisit Poster's WebsiteYahoo MessengerMSN Messenger
precious
WebHelper
WebHelper


Joined: 06 Apr 2002
Posts: 65

PostPosted: Fri Sep 26, 2003 2:03 pm (14 years, 1 month ago) Reply with QuoteBack to Top

That's PHP, I need a perl script.
OfflineView User's ProfileFind all posts by preciousSend Personal Message
precious
WebHelper
WebHelper


Joined: 06 Apr 2002
Posts: 65

PostPosted: Sat Sep 27, 2003 7:08 am (14 years, 1 month ago) Reply with QuoteBack to Top

Can any perl expert help me with this WebAuthenticate perl script in the below link which you can download the full documentation and installation files at

http://www.generate.netfirms.com/cgi-bin/to.cgi?l=webauthentication

This is a webpage authentication perl program but lack the registrator's email address authentication capability.

It will be good if you can add/modify the perl script to authenticate user's email address before allowing him to access the protected webpage. This means that you will have to enhance the script so that it is able to send an email to the registering user to verify that he has indeed entered a valid email address. He needs to respond to the verification email to access the protected webpage.
OfflineView User's ProfileFind all posts by preciousSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.048617 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme