title: Laravel 4 Auth::Attempt
body: <p>I'm new to laravel. I have an existing app built in CodeIgniter then I want to migrate it to laravel. I'm using laravel 4.</p>
  
  <p>My problem is my <code>Auth::attempt()</code> always return <code>false</code>.</p>
  
  <p>I have an existing <code>DB</code> then I have a table <code>users</code>.</p>
  
  <p>My question is do I need to run the migrate to create a new table or I can used the existing table?</p>
  
  <p>here is my table:</p>
  
  <pre><code>------------------------------------
  -- UserName | Password   | Active --
  -- sample   | samplepass | 1      --
  ------------------------------------
  </code></pre>
  
  <p>the <code>samplepass</code> is encrypted using the <code>Hash::make('samplepass');</code></p>
  
  <p>here is my code:</p>
  
  <pre><code>$credentials = array(
    'UserName' =&gt; Input::get('username'),
    'Password' =&gt; Input::get('password'),
    'Active' =&gt; 1
  );
  
  if (Auth::attempt($credentials)) {
     // redirect to dashboard
  } else {
     // return to login page with message
  }
  </code></pre>
  
  <p>The output is always return to login page.</p>
  
  <p>I didn't change anything on the <code>config/auth.php</code> file</p>
  
  <p>Anyone can help?</p>
  
  <p>Thanks</p>