code: public function updateCurrentUser(Contao\DataContainer $dc)
  	{
  		if ($this->User->id == $dc->id)
  		{
  			$this->User->findBy('id', $this->User->id);
  		}
  	}
docs: Update the current user if something changes, otherwise they would be
  logged out automatically
  
  @param Contao\DataContainer $dc