Can you verify Input::all() contains an element called 'password'
<input type='password' name='password' class='span8' id='inputIcon' placeholder='Password' /> it does Also, i tried removing Validator::make, and the problem seems to originate from Auth::attemptelite123 said:
Can you verify Input::all() contains an element called 'password'
Nevermind, i replaced attempt with login, and i made this:
$auth = User::where('Name', '=', Input::get('username'))->where('Password', '=', Hash::make(Input::get('password')))->first();
if($auth){
Auth::login($auth);
return Redirect::to('home');
}
else
{
return Redirect::to('login');
}
and it works
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community