title: get username and password OpenCart
body: <p>I want to check if the user is logged in. I want to check the username and the password. Does anyone have any idea? I am making a login function and i want to check the username and the password. For PrestaShop i did it like this:</p>
  
  <pre><code>if (empty($email)) {
          $this-&gt;errors[] = Tools::displayError('Email is empty.');
          $this-&gt;doLog('ERROR: Email/username is empty');
      } elseif (!Validate::isEmail($email)) {
          $this-&gt;errors[] = Tools::displayError('Invalid email address.');
          $this-&gt;doLog('ERROR: Invalid Email address');
      }
  
      if (empty($pwd)) {
          $this-&gt;errors[] = Tools::displayError('The password field is blank.');
          $this-&gt;doLog('ERROR: The password field is blank');
      } elseif (!Validate::isPasswd($pwd)) {
          $this-&gt;errors[] = Tools::displayError('Invalid password.');
          $this-&gt;doLog('ERROR: Invalid password');
      }
  </code></pre>
  
  <p>Does anyone know how to get the username and the password? And how i can check if they are filled in? And how i can validate them?</p>
  
  <p>Thanks</p>