Browse Source

temporary fix for https://assistance.opentalent.fr/browse/REQ-3207

Olivier Massot 4 năm trước cách đây
mục cha
commit
b55dfa59d5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      ot_connect/Classes/Service/OtAuthenticationService.php

+ 2 - 1
ot_connect/Classes/Service/OtAuthenticationService.php

@@ -26,6 +26,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
     CONST GET_USER_DATA_URI = self::API_URI . 'user/datafortypo3';
     CONST ISAUTH_URI = self::API_URI . 'user/isauthenticated';
     CONST LOGOUT_URI = self::API_URI . 'logout';
+    CONST GROUP_FE_ALL_UID = 18076;
 
     // Cookies'domain needs to be the same that the api's cookies, or guzzle will ignore them.
     CONST COOKIE_DOMAIN = 'opentalent.fr';
@@ -317,7 +318,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
             'name' => $userApiData['name'],
             'first_name' => $userApiData['first_name'],
             'description' => '[Warning: auto-generated record, do not modify] FE User',
-            'usergroup' => 21,
+            'usergroup' => self::GROUP_FE_ALL_UID,
             'deleted' => 0,
             'tx_opentalent_opentalentId' => $userApiData['id'],
             'tx_opentalent_generationDate' => date('Y/m/d H:i:s')