So after you call save(), do:
$credentials = array(
'email' => Input::get('email'),
'password' => Input::get('password')
);
if (Auth::attempt($credentials)) {
return Redirect::to('dashboard');
}
I didn't try but
// log the user in then redirect
Auth::login($user);
return Redirect::to('dashboard');
Perfect, I might extract that to its own method but that worked! Thanks!
Sign in to participate in this thread!