Current location: Hot Scripts Forums » Programming Languages » PHP » forgot password help


forgot password help

Reply
  #1 (permalink)  
Old 10-13-04, 08:18 PM
mathieu67 mathieu67 is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
forgot password help

I need a forgot your password script that will dispay the password to the user instead of emailing it. I looked everywhere can't find one...help
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 08:57 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

First off, I think your need is a bit too specific so that there probably won't be such a script. Even if you find something close, you will still have to do some modifications on it.

It seems like you already have a script that allows you to send forgot-passes to email addresses (i.e. you are not stuck with how to retrieve forgot passes, right?). If I were you, I would perhaps open the file that does the emailing and somehow remove the emailing part and display the email contents on the page.

Hope you get some idea.
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 10-13-04, 10:15 PM
jasong jasong is offline
Wannabe Coder
 
Join Date: Feb 2004
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
The reason why there won't be a script is because none of them are ment for your script.
If you already have the whole email part working like what Blaw said, then just remove the whole mail() part and look for a variable that says something about a password and then try to print that.

If not that then you can just have a "select password from members where username=billybob" query.

If you dont know how to code (assuming this is in php) I can help you out.
Reply With Quote
  #4 (permalink)  
Old 10-13-04, 10:18 PM
Deekay Deekay is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
The mail part is for security.. I don't know how you're going to make it secure enough so that noone could just fake someones email.

Quote:
Originally Posted by jasong
If not that then you can just have a "select password from members where username=billybob" query.
Well.. 99% of scripts encrypt passwords incase of sql injection so thats probably not gonna work.
Reply With Quote
  #5 (permalink)  
Old 10-13-04, 10:43 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Click once:

Quote:
Hint: your password has four characters in it
Click again:

Quote:
Your password has been emailed to your address.
Of course, as explored above, the standard password encryption won't let you do that. But if your function emails the actual password to the user, instead of changing it to something random, then you can.

Question, though. Why would you display the password to the user? Where's the verification? If you're going to do that, might as well just let anyone log in as someone else. This could work if you had a secret question though..
__________________
define('TRUE', FALSE);
Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need To Password Protect a Page For Multi-Users cebuy PHP 8 09-09-04 07:57 AM
password validation <?Wille?> PHP 3 08-18-04 03:04 PM
password textbox mpriest HTML/XHTML/XML 14 07-07-04 09:56 AM
password ( ) + MYSQL rsuresh PHP 2 06-15-04 05:42 AM
Quick Question for you php guru's Tokahashi PHP 3 04-09-04 12:00 PM


All times are GMT -5. The time now is 04:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.