SOLVED
i want to make my index.php homepage so that once the user logs in, the login box on the right hand side disappears and the mini-bio shows.
my homepage is:
www.eliteczlteam.com
i got the script working fine after browsing through the forums becuause i had a few errors. they got fixed so im assuming you guys can help me.
NOT SOLVED
see below please
Comments
i have another question though, this one might be a little easier to answer.
I got a forgot password/mail password script off some site because the membership system i have didnt come with with, and i tweaked it fine.
Everything works fine, it pulls the username and password out of the database and sends it in a mail all fine, but when the mail arrives, the password is still encrypted.
I need to know how to decrypt mysql-stored passwords to send in a mail?
Any ideas?
Thanks Alot!
In order to have forgotten password script, you'd need to have a script which could change the password to something else and then mail a copy of the unencrypted password to the user.
MD5 is hard to decrypt unless you know what was encrypted since it was only ever designed to generate a 32 character string from anything it's used on.
Other systems such as Blowfish aren't overly available in PHP unless you set about coding the encryption engines yourself, which would take a while and be impractical.
Current project: CMS Object.
Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
Release date: NEVER!!!
So basically you want me to tweak the script so that it would change the mysql password field to a temporary password, then mail that password to the end user?
Wouldnt that leave the password row non-hashed?
Or what your saying is that the script hashs a password and then inputs it into the database, and then unhashes it and sends it to the user?
Could you possibly give me an example of a script that would do that?
Thanks Alot
Then you pudate your database so that the password is the hashed version of the string you just created.
You can then send an e-mail containing the unhashed password and anything else you want so they can use the new password to log in.
Current project: CMS Object.
Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
Release date: NEVER!!!
thanks
Current project: CMS Object.
Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
Release date: NEVER!!!
As far as I know if your using encrypted passwords then the only way to do a password forgot feature is to reset the password.... and then email the unencrypted version to the user before it is encrypted with md5() and inserted into the database.
Get me?
The Royal Ram
That's what happens when you're coding something in another language while posting PHP :P
Current project: CMS Object.
Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
Release date: NEVER!!!
The Royal Ram
That's the only real way to do it if you're hashing passwords with md5()...
Current project: CMS Object.
Most recent change: Theme support is up and running... So long as I use my theme resource loaders instead of that in the Rails plug-in.
Release date: NEVER!!!
Though when the user receives the mail, somehow the information is not being properly pulled out of the database, and this is the result:
Any help is greatly appreciated.
you can the the script in action for yourself at http://www.eliteczlteam.com/forgot-password.php
I know its a very common error, but this time i dont know what to do.
i've tried a million different formats upto now. im going crazy!! :mad:
the current code im using is:
that doesnt seem to be working...
this is the way my database is setup
database4 >
users>
*username* >
username, password, userid, userlevel, email, timestamp
i need an update command that will update the password field. any ideas?
[PHP]mysql_query("UPDATE 'users' SET 'password'='".$hashed."' WHERE 'password'='".$fm."'");[/PHP]
The Royal Ram
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mounted-storage/home6/sub003/sc13330-VFPN/www/forgotpassworddev.php on line 180
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /mounted-storage/home6/sub003/sc13330-VFPN/www/forgotpassworddev.php on line 181
THANK YOU
Your password has been emailed to danielneri@bellsouth.net. Please check your mail after some time.
You will be redirected in 3 seconds.
dontknow..
thats the whole code, took out some words from gen to make it fit
mysql_query("update users set password='".$hashed."' where user_id='"$user_id."'");
eh...the header errors r youve started a session after some stuff was outputted....as far as the mysql_errors might be a miss type somewhere
The Royal Ram