I am using Laravel 4, My Database tables / pages were created using an older version of Laravel. Version 3. I believe.
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.
My Hashed codes are :
Database
$08$wqCWqMgG7SRIukdyNEbXX.kK5c.8BxqzGVJSaCC55eKndFjqrJqJG
Form
$2y$10$hJQsF7.KkuXw4GYb8vk1o.SZhdocP7e8SxcjvBWjtLzpJPBlX0f5q
My Laravel controller code is :
public function postLogin()
{
$email = Input::get('email');
$password = Hash::make(Input::get('Password'));
dd($password);
$credentials = array(
'user_email' => Input::get('UserName'),
'user_password' => Input::get('Password')
);
if(Auth::attempt($credentials))
{
return Redirect::to('dashboard')->with('message', 'You are now logged in!');
}
else
{
return Redirect::to('users/login')
->with('message', 'Your username/password combination was incorrect')
->withInput();
}
}
Is it down to an older version of the DB not matching? Any suggestions on what I can check / change to match.
Cheers