title: Cannot get token from Opencart API
body: <p>I am working on my angular app and i want to use opencart REST API for some reason. As docs says firstly i have to get token from API. Heres code from docs:</p>
  
  <pre><code>import requests
  
  s = requests.Session()
  
  username = 'Default'
  key='L3MYyzlYMRL8gBcpCm6CdrVarFUXtPORZkJKP7vgaY8M8EIZWOr3EJxq'
  # Actually, key is 256 character-long
  
  s.post(
      'http://myopencart.example.com/index.php?route=api/login',
      data={'username':username, 'key':key}
  ).text
  </code></pre>
  
  <p>Here is my angular app code:</p>
  
  <pre><code>getToken() {
      return this.http.post(
        this.config.getUrl() + '/login',
        {
          username: this.config.getUserName(),
          key: this.config.getKey()
        },
        {
          responseType: 'text'
        }
      );
    }
  </code></pre>
  
  <p>For some reason i got this error message:</p>
  
  <pre><code>&lt;b&gt;Notice&lt;/b&gt;: Undefined index: api_token in &lt;b&gt;/var/www/html/opencart/catalog/controller/startup/startup.php&lt;/b&gt; on line &lt;b&gt;45&lt;/b&gt;&lt;b&gt;Notice&lt;/b&gt;: Undefined index: username in &lt;b&gt;/var/www/html/opencart/catalog/controller/api/login.php&lt;/b&gt; on line &lt;b&gt;11&lt;/b&gt;&lt;b&gt;Notice&lt;/b&gt;: Undefined index: key in &lt;b&gt;/var/www/html/opencart/catalog/controller/api/login.php&lt;/b&gt; on line &lt;b&gt;11&lt;/b&gt;[]
  </code></pre>
  
  <p>What do i do wrong? </p>