Issue Bug Closed

#75220Wrong FE User datas

Antoine Bouet 03/22/16, 11:00 updated 10/02/18, 11:18

Description

Hi :)

I have a strange behaviour with FE Users.
When I log with the last created FE User, the prefilled personal datas of my user forms are the one of another FE User.

Here is my code :

$user = $GLOBALS['TSFE']->fe_user->user;
if ($user) {
  $this->frontendUser = $this->frontendUserRepository->findByUid($user['uid']);
}

$this->view->assignMultiple(
    array(        
        'feUser' => $this->frontendUser
    )
);

If I change the usergroup to another FE Group, the datas are ok.
Then if I change the usergroup to the original FE Group, the datas are wrong.

When I try to display a debug of $this->frontendUser, all is fine, there is no problem anymore …

Tested in several browser and private modes.

Any ideas ?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.