title: Adding a new global variable in twig
body: <p>I'm trying to get data for a new field added in login page. What I've done:</p>
  
  <ol>
  <li>Modify <code>AccountController.php</code> login function adding new parameter: <code>$this-&gt;_app-&gt;login($user, $client, !empty($data['rememberme']))</code></li>
  <li>In <code>Userfrosting.php</code> login function i've set it in application: <code>$this-&gt;client = $client;</code></li>
  <li>In <code>setupTwigUserVariables</code> funtion added twig global: <code>$twig-&gt;addGlobal("client", $this-&gt;client);</code></li>
  </ol>
  
  <p>The problem is that in a template, <code>{{client.id}}</code> returns nothing. Any help will be appreciated.</p>