CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Password retrieval / account activation

Print topic Send  topic

Author Message
Headhunter
Posted: 09/16/2003, 12:46 AM

PhP MySQL CCS2.1

Has anyone managed to create a password retrieval routine for a md5 hashed password stored in db?
I know you cannot retrieve md5 hashed password but something similar like PHPBB2's account activation would be just fine. (create new password and send it to the user with a link to the activation page).

Thanks
feha
Posted: 09/16/2003, 1:26 AM

Hi Headhunter
I'm working on it for www.WebShopXL.com
And will send it to You ...

Regards
feha
[www.vision.to]


feha
Posted: 09/16/2003, 2:32 AM

Do You want the system to send a password, or you want that after reset user enters own one ?

regards
feha
Headhunter
Posted: 09/16/2003, 2:43 AM

Hi Feha

send password would be fine.

Thanks for your help
feha
Posted: 09/16/2003, 3:06 AM


when the user hits a reset button ...
autogenerate password with:

//this will generate a random pass in lenght of 6 chars... you can change it...
before update event ....

$user_password=substr(md5(uniqid(rand(),1)),0,6);//Random Password

send by e-mail the password before encryption :$user_password
(write some message ...)

before update event ....

$users->user_password->SetValue(md5($user_password));//This will update the encrypted password ...

This is the easyest way ...
:-)
regards
feha
[www.vision.to]
if you want the special reset link...
create a "secret_code" column in users table ...
(each user need a unique one ...)
and generate link with that code to be sent by e-mail...
so when user clicks on that link will ge buton to reset password ....


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.