carlg Posted September 24, 2007 Share Posted September 24, 2007 When I enter a new user into my database table that stores users, I put the password in the database kind of like this. crypt($pwd) When I try to verify the user, I do something like this if (crypt($pwd_user_just_entered) == $pwd_from_database) { //user logged in OK } else { //invalid login } I think I'm doing something wrong Any help is appreciated Thanks Quote Link to comment https://forums.phpfreaks.com/topic/70544-help-with-user-authentication/ Share on other sites More sharing options...
recklessgeneral Posted September 24, 2007 Share Posted September 24, 2007 Hi, The manual page for crypt (http://www.php.net/manual/en/function.crypt.php) raises a few issues to be wary of with this function. I haven't used it myself - I favour the md5 function myself, which seems to work fine. Cheers, Darren. Quote Link to comment https://forums.phpfreaks.com/topic/70544-help-with-user-authentication/#findComment-354424 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.