OK. I have used TechTuts user system tutorials to make a user system. But I need a code that will check if the password on that account is changeme. And if it is, redirect them to the password change page. Reputation will be awarded! KKTHNX.
OK. I have used TechTuts user system tutorials to make a user system. But I need a code that will check if the password on that account is changeme. And if it is, redirect them to the password change page. Reputation will be awarded! KKTHNX.
Hey i don't think you really need that script, because if the person has anybrains what so ever he/she will change there password anyway.
-Daza
No it's a school thing. I'm making the accounts. So when they login I need them to change their password.
Last edited by Newsie; 24-02-2006 at 09:44 PM.
Oh i hate school things they have to be so difficult.
-Daza
Tell me about it.
I'm assuming that the user logs in and the variable of the field where they type the pass is "pass". Just put this as the first thing in your PHP on the page where the user goes when they log-in, and it should work depending on the script etc.
If it doesn't work post the script here, or link to the site and I'll try and work something out to fit in with your site.PHP Code:if($_POST['pass'] == 'changeme') {
header('location: http://www.google.com');
die();
}
If you need to fish the pass out of a database it will almost certainly be encrypted.
i used to be NintendoNews. visit my blog or add me on twitter.
need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!
"I am the way, the truth, and the life. No one comes to the Father except through me"
John 14:6 (NIV)
You could have a table in the mysql called oldpass and newpass
then you could compair them and if they match it would say bleh bleh bleh. You could do that by editing Nets if/else code.
Want to hide these adverts? Register an account for free!