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? Link to comment https://forums.phpfreaks.com/topic/254572-md5-coding-and-decodin-for-login/ 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. Link to comment https://forums.phpfreaks.com/topic/254572-md5-coding-and-decodin-for-login/#findComment-1305404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.