BluwAngel Posted January 7, 2012 Share Posted January 7, 2012 well i decide to use md5 coding for my project now since i have some users that i manually insert in database i wonder how do i login with them since in database i have only password typed in,and rest of them is coded since my login looks like this now $username=$_POST['username']; $password=md5($_POST['password']); and before was without md5 part and that pull out my other question if i go online with md5 and by default user is member and not admin do i need manually change that in database or how do i register my admin account? Quote Link to comment Share on other sites More sharing options...
scootstah Posted January 7, 2012 Share Posted January 7, 2012 You can use MySQL's MD5 function when manually inserting a password. Or hash it ahead of time. In order to tell if a user is an admin you'll have to have some sort of flag in the users table, like "is_admin" and set it to 1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.