Skip to content

Commit

Permalink
Fix a login is not a case sensitive data #31864
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 15, 2024
1 parent 16c46fb commit a2dce69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/webportal/class/context.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ public function getThirdPartyAccountFromLogin($login, $pass)

$sql = "SELECT sa.rowid as id, sa.pass_crypted";
$sql .= " FROM " . $this->db->prefix() . "societe_account as sa";
$sql .= " WHERE BINARY sa.login = '" . $this->db->escape($login) . "'"; // case sensitive
$sql .= " WHERE sa.login = '" . $this->db->escape($login) . "'";
//$sql .= " AND BINARY sa.pass_crypted = '" . $this->db->escape($pass) . "'"; // case sensitive
$sql .= " AND sa.site = 'dolibarr_portal'";
$sql .= " AND sa.status = 1";
Expand Down

0 comments on commit a2dce69

Please sign in to comment.