Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[PHP] strings equal but not equalling?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RastaLulz" data-source="post: 367319" data-attributes="member: 1"><p>For one, you should NOT be using md5() to hash your passwords, please look into password_hash().</p><p></p><p>The way you should be verifying credentials is by hashing the password first, and then in your SQL query checking where that email is used, along with the hashed password. I also assume you're setting $_POST['password'] to $password at some point.</p></blockquote><p></p>
[QUOTE="RastaLulz, post: 367319, member: 1"] For one, you should NOT be using md5() to hash your passwords, please look into password_hash(). The way you should be verifying credentials is by hashing the password first, and then in your SQL query checking where that email is used, along with the hashed password. I also assume you're setting $_POST['password'] to $password at some point. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[PHP] strings equal but not equalling?
Top