function validarLogin($correo_usr, $password_usr){ $stmt = $this->conexion->prepare('SELECT * FROM USUARIO WHERE correo_usr = ? AND password_usr = ?'); $password_usr = password_hash($password_usr, PASSWORD_DEFAULT); $stmt->bind_param("ss", $correo_usr, $password_usr); $stmt->execute(); $stmt->store_result(); return $stmt->num_rows > 0; }