Skip to content

Instantly share code, notes, and snippets.

@SevereOverfl0w
Created July 26, 2014 13:19
Show Gist options
  • Save SevereOverfl0w/a003d4290b9a266224b4 to your computer and use it in GitHub Desktop.
Save SevereOverfl0w/a003d4290b9a266224b4 to your computer and use it in GitHub Desktop.
if (Auth::attempt( array('username' => Input::get('username'), 'password' => Input::get('password')) )){
return Redirect::intended('/');
} else {
return Redirect::to('login')->withErrors(array('form' => 'Incorrect login credentials'))->withInput();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment