PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost How do I...?

ReviewPost How do I...? Wondering how to do something in ReviewPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 10th, 2006, 05:37 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Location: Maryland
Posts: 85
Forgot Password sending encrypted string

Finally got Reviewpost back online. Problem was with the server's mysql program. But one thing that I've now noticed that has started is when a user uses the "forgot password" link, the program is sending a new one but instead of being a short word it sending the entire encypted string as in:

Your new password is: 563068853874a66d19f8ffd3fd0798ab

and that can't be used to log in.

How can I correct this? Thanks.
ace67 is offline   Reply With Quote
Old February 10th, 2006, 08:24 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
I would suggest you download the program from our site and update your files. I can not tell you what your problem is as the code I am looking at looks fine. We send via the email the unencrypted password

$newpass is the one you get in the email.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 10th, 2006, 11:21 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Location: Maryland
Posts: 85
Thanks for giving me the code to look for. What you have there is correct. However after testing the forgot password function further, I found that the email was being generated by this in member.php:

Quote:
if ( $ppaction == "forgot" ) {
if ( $do == "process" ) {
$resultb = ppmysql_query("SELECT username,userid,joindate FROM {$Globals['rp_db_prefix']}users WHERE email='$inemail'", $link);
$checkrows = mysql_num_rows($resultb);

if ($checkrows > 0) {
while( list( $dbuser, $dbuid, $joindate ) = mysql_fetch_row($resultb) ) {
$genpass = gen_password();
$newpass = md5($genpass);
$resulta = ppmysql_query("UPDATE {$Globals['rp_db_prefix']}users SET password='$newpass' WHERE userid=$dbuid", $link);

include("{$Globals['RP_PATH']}/languages/$rplang/emails.php");

$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['epassres1'];
$subject = $Globals['pp_lang']['epasssub2'];

mail( $inemail, $subject, $letter, $email_from );
}
That code, as you can see, encrypts the password before it is sent in the email. So I changed the code from $genpass on down to:


Quote:
$genpass = gen_password();
$newpass = $genpass;

include("{$Globals['RP_PATH']}/languages/$rplang/emails.php");

$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['epassres1'];
$subject = $Globals['pp_lang']['epasssub2'];

mail( $inemail, $subject, $letter, $email_from );

$newpass = md5($genpass);
$resulta = ppmysql_query("UPDATE {$Globals['rp_db_prefix']}users SET password='$newpass' WHERE userid=$dbuid", $link);

}
I sent the email with $newpass before it was encrypted and added to the user table. Now it seems to be working correctly. Do you see anything that making this change will harm that I may have overlooked?
ace67 is offline   Reply With Quote
Old February 11th, 2006, 07:19 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
Your member.php is not correct download the software and upload member.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 11th, 2006, 09:14 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Location: Maryland
Posts: 85
Downloaded another copy of 3.11. Unzipped. Uploaded member.php untouched. Tested Forgot Password option. Same problem I had with original member.php. New password is sent encrypted.

::shrug::

So I've put my original member.php that I edited as in above post back up and it works fine. I think I'll stick with that.

Thanks.
ace67 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot Password Redirection Question ViperGTS2000 Photopost Pro Installation & Upgrades 2 December 19th, 2005 08:50 AM
Reset Password Not Sending Email(NOT A BUG) stmpspaz Photopost Pro Bug Reports 8 October 10th, 2005 03:00 PM
Text string in template dontom Classifieds Bug Reports 2 July 26th, 2005 11:18 AM
Editing separator in cat string SloChild ReviewPost Installation & Upgrades 3 December 3rd, 2004 06:42 PM
forgot password email blank sbtiti Classifieds Bug Reports 1 August 30th, 2004 10:06 PM


All times are GMT -5. The time now is 03:30 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0