title: TYPO3 fe_user how login user via php code?
body: <p>I have TYPO3 7.6.18 and extension femanager. </p>
  
  <pre><code>$GLOBALS['TSFE']-&gt;fe_user-&gt;checkPid = '';
  $info = $GLOBALS['TSFE']-&gt;fe_user-&gt;getAuthInfoArray();
  $user = $GLOBALS['TSFE']-&gt;fe_user-&gt;fetchUserRecord($info['db_user'], $username);
  $loginData = array('uname' =&gt; $username, 'uident' =&gt; $password, 'status' =&gt; 'login');
  
  $GLOBALS['TSFE']-&gt;fe_user-&gt;forceSetCookie = TRUE;
  $GLOBALS['TSFE']-&gt;fe_user-&gt;createUserSession($user);
  $GLOBALS['TSFE']-&gt;fe_user-&gt;user = $GLOBALS['TSFE']-&gt;fe_user-&gt;fetchUserSession();
  
  $loginSuccess = $GLOBALS['TSFE']-&gt;fe_user-&gt;compareUident($user, $loginData);
  </code></pre>
  
  <p>this code does't work. error:</p>
  
  <pre><code>PHP Catchable Fatal Error: Argument 2 passed to In2code\Femanager\Utility\LogUtility::log() must be an instance of In2code\Femanager\Domain\Model\User, boolean given, called in /home/abenteuer/public_html/typo3conf/ext/feusersplus/Classes/Controller/NewController.php on line 91 and defined in /home/abenteuer/public_html/typo3conf/ext/femanager/Classes/Utility/LogUtility.php line 48
  </code></pre>
  
  <p>Is it hard code? May be exists better way ?</p>
  
  <p>Do you know how login user via php code ?</p>