Test Failed
Push — main ( da3911...42408f )
by Rafael
06:11
created
htdocs/Core/Helpers/Auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@
 block discarded – undo
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';");
Please login to merge, or discard this patch.