0
$sql = "SELECT username, mail, password FROM users WHERE username = :user_name OR mail = :user_name;";
$query = $this->db->prepare($sql);
$query->bindParam(':user_name', $user_name);
$query->bindParam(':user_password', $user_password);
$query->execute();
How do I return the user password value?
If you are explicitly storing your users' password in the database, you’re making a fool of yourself.
– user25930
I’m hashing '-' http://prntscr.com/7k1d7l
– misakie
Read the link I sent - MD5 or SHA1 (or SHA-whatever) are not enough.
– user25930