Replace line 24 with:
if(Auth::attempt(array('username' => Input::get('email'), 'password' => Input::get('password'))))
Give that a shot.
You're just returning true upon a successful login... Replace line 26 with
dd('Great sexy success');
If you see it, congrats, you're logged in.
Working for me now (my code had 'Password' as second key)
Funnies mistake I ever made:
$member->password = Hash::make('password');
When they register I and storing password as "password".
It should be
$member->password = Hash::make(Input::get('password'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community