title: How to create a custom password field for Laravel Auth
body: <p>I need to login users registered in the table <em>Igrejas</em> that have the fields <strong>responsavel_cpf</strong> and <strong>responsavel_senha</strong>, but Laravel in the function <em>validateCredentials</em> expects the name <code>'password'</code>.</p>
  
  <pre class="lang-php prettyprint-override"><code>public function validateCredentials(UserContract $user, array $credentials)
  {
      $plain = $credentials['password'];
  }
  </code></pre>
  
  <p>I tried to login using <em>attempt</em> without success:</p>
  
  <pre class="lang-php prettyprint-override"><code>$userdata = array(
      'responsavel_cpf'      =&gt; Input::get('email'),
      'responsavel_senha'    =&gt; Input::get('password')
  );
  
  if (Auth::guard('igrejas')-&gt;attempt($userdata)) {
      return Redirect::to('dashboard_paroquia');
  } else {
      return Redirect::to('login');
  }
  </code></pre>
  
  <p>What do I do to replace the default fields <strong>email</strong> and <strong>password</strong> with <strong>responsavel_cpf</strong> and <strong>responsavel_senha</strong>?</p>