|
|
@@ -17,9 +17,7 @@ use \TYPO3\CMS\Core\Authentication\AbstractAuthenticationService;
|
|
|
class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
{
|
|
|
|
|
|
-// CONST DOMAIN = 'https://api.opentalent.fr';
|
|
|
- CONST DOMAIN = 'https://api.preprod.opentalent.fr';
|
|
|
-
|
|
|
+ CONST DOMAIN = 'https://api.opentalent.fr';
|
|
|
CONST API_URI = self::DOMAIN . '/api/';
|
|
|
CONST LOGIN_URI = self::API_URI . 'login_check';
|
|
|
CONST GET_USER_DATA_URI = self::API_URI . 'user/datafortypo3';
|
|
|
@@ -133,7 +131,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
}
|
|
|
|
|
|
// Request the latest data for the user and write it in the Typo3 DB
|
|
|
- // * The userShouldBeRegenerated() method checks if the user was already
|
|
|
+ // * The shouldUserBeUpdated() method checks if the user was already
|
|
|
// generated in the last minutes, to avoid unecessary operations *
|
|
|
if ($this->shouldUserBeUpdated($username)) {
|
|
|
$wasUpdated = $this->createOrUpdateUser();
|