title: Hashed Password not matching - Laravel
body: <p>I am using Laravel 4, My Database tables / pages were created using an older version of Laravel. Version 3. I believe.</p>
  
  <p>I have a user login system in place and when passing the hashed password from the view to the controller, It doesn't match the Databases' password at all.</p>
  
  <p>My Hashed codes are :</p>
  
  <p><strong>Database</strong></p>
  
  <blockquote>
    <p>$08$wqCWqMgG7SRIukdyNEbXX.kK5c.8BxqzGVJSaCC55eKndFjqrJqJG</p>
  </blockquote>
  
  <p><strong>Form</strong></p>
  
  <blockquote>
    <p>$2y$10$hJQsF7.KkuXw4GYb8vk1o.SZhdocP7e8SxcjvBWjtLzpJPBlX0f5q</p>
  </blockquote>
  
  <p>My Laravel controller code is :</p>
  
  <pre><code>public function postLogin()
      {
  
          $email = Input::get('email');
          $password = Hash::make(Input::get('Password'));
  
          dd($password);
  
          $credentials = array(
              'user_email' =&gt; Input::get('UserName'),
              'user_password' =&gt; Input::get('Password')
          );
  
          if(Auth::attempt($credentials))
          {
              return Redirect::to('dashboard')-&gt;with('message', 'You are now logged in!');
          }
          else
          {
              return Redirect::to('users/login')
                             -&gt;with('message', 'Your username/password combination was incorrect')
                             -&gt;withInput();
          }
      }
  </code></pre>
  
  <p>Is it down to an older version of the DB not matching? Any suggestions on what I can check / change to match.</p>
  
  <p>Cheers</p>