@@ -125,8 +125,8 @@ |
||
125 | 125 | */ |
126 | 126 | public function setUser($user, $password): bool |
127 | 127 | { |
128 | - $username_field = 'login'; // Alxarafe use 'username', but Dolibarr use 'login' |
|
129 | - $password_field = 'pass_crypted'; // Alxarafe use 'password', but Dolibarr use 'pass_crypted' |
|
128 | + $username_field = 'login'; // Alxarafe use 'username', but Dolibarr use 'login' |
|
129 | + $password_field = 'pass_crypted'; // Alxarafe use 'password', but Dolibarr use 'pass_crypted' |
|
130 | 130 | $encrypt_method = "password_hash"; // Alxarafe use 'md5', but Dolibarr use a function called dol_hash |
131 | 131 | |
132 | 132 | $_user = Engine::select("SELECT * FROM {$this->users->tableName} WHERE $username_field='$user';"); |