|
|
@@ -2114,7 +2114,7 @@ class SiteController extends ActionController
|
|
|
$data['network'] = $stmt->fetch();
|
|
|
|
|
|
$stmt = $cnn->query(
|
|
|
- "SELECT p.username, p.id as person_id, s.product, p.password
|
|
|
+ "SELECT p.username, p.id as person_id, s.product
|
|
|
FROM opentalent.Person p
|
|
|
INNER JOIN opentalent.Access a ON p.id = a.person_id
|
|
|
INNER JOIN opentalent.Settings s on a.organization_id = s.organization_id
|
|
|
@@ -2317,14 +2317,14 @@ class SiteController extends ActionController
|
|
|
}
|
|
|
|
|
|
$hashInstance = GeneralUtility::makeInstance(PasswordHashFactory::class)->getDefaultHashInstance('BE');
|
|
|
- $hashedPassword = $hashInstance->getHashedPassword($userData['password']);
|
|
|
+ $hashedRandomPassword = $hashInstance->getHashedPassword(uniqid("", true));
|
|
|
|
|
|
$adminGroup = self::IS_PRODUCT_PREMIUM[$userData['product']] ? self::BEGROUP_ADMIN_PREMIUM : self::BEGROUP_ADMIN_STANDARD;
|
|
|
$adminGroupUid = $this->getBaseBeGroupUid($adminGroup);
|
|
|
|
|
|
$values = [
|
|
|
'username' => $userData['username'],
|
|
|
- 'password' => $hashedPassword,
|
|
|
+ 'password' => $hashedRandomPassword,
|
|
|
'description' => '[Auto-generated] BE Admin for organization ' . $organizationId,
|
|
|
'deleted' => 0,
|
|
|
'lang' => 'fr',
|