When I'm creating a user, the username and password saves in a hash. Now I want my username and password when log in, can be read by the system. I am using Laravel
Below is my code for user controller
public function postSignin() {
if (Auth::attempt(array('username'=>Input::get('username'), 'password'=>Input::get('password')))) {
return Redirect::to('admin/dashboard')->with('message', 'You are now logged in!');
} else {
return Redirect::to('users/login')
->with('message', 'Your username/password combination was incorrect')
->withInput();
}
}