Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
not checked, but I'm starting to guess that the columns are selected in the controller itself.
(well, plus more additions in the models that the password is password1)
MYSQL
login1 | password1
public function authenticateUser(){
$userdata = array(
'login1' => Input::get('login'),
'password1' => Input::get('password')
);
if( Auth::attempt($userdata) ) {
return Redirect::to('/admin');
} else {
return View::make('auth.loginform', array(
'error' => 'user data is incorrect',
'old_input' => Input::all()
));
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question